 |
|
|
|
| Author |
Message |
Tmajarov
Joined: 06 Aug 2007 Posts: 4
|
Posted: Fri Jun 03, 2005 1:39 pm Post subject: WEBDAV: how to get a Multiline body in webdav created appoin |
|
|
I am using webdav to create an appointment and post it to a clanedar. When I
pass a regular string with carriage returns and linefeeds to the
htmldescription field they do not display. If I try to pass an html
formatted string in the htmldescription field, for example:
"
HTML//EN"">TestTesting"
I get a 400 bad request error. I have tried setting the
httpmail:content-media-type and mailheader:content-type to "text/html" and
this did not help; I still got the bad request error. Not sure if i need
to set the mailheader:content-transfer-encoding or what. I have not found any
references that addresses this issue. Can anyone point me in the right
direction on how to get the appointment body to display with line breaks?
Thanks in advance,
Tom Majarov
Archived from group: microsoft>public>exchange2000>development |
|
| Back to top |
|
 |
Tmajarov
Joined: 06 Aug 2007 Posts: 4
|
Posted: Fri Jun 03, 2005 2:30 pm Post subject: RE: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
Here are two requests I ran the first one that just uses a string in the
htmldescription field works and posts an appointment, the second uses a html
tagged string in the htmldescription field and fails with 400 bad request
error:
this works:
"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:mapi="http://schemas.microsoft.com/mapi/"
xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
xmlns:cal="urn:schemas:calendar:"
xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
urn:content-classes:appointment
IPM.Appointment
Test Appointment Subject
test
meetappt Location
2005-06-02T10:00:00.000Z
2005-06-02T10:30:00.000Z
0
BUSY
CONFIRMED
0
1
tmajarov
1
"
This doesn't:
"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:mapi="http://schemas.microsoft.com/mapi/"
xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
xmlns:cal="urn:schemas:calendar:"
xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
urn:content-classes:appointment
IPM.Appointment
Test Appointment Subject
TestTesting
meetappt Location
2005-06-02T10:00:00.000Z
2005-06-02T10:30:00.000Z
0
BUSY
CONFIRMED
0
1
tmajarov
1
"
Thanks again hope this helps elucidate the issue,
Tom Majarov |
|
| Back to top |
|
 |
Henning Krause [MVP]
Joined: 05 Aug 2007 Posts: 2
|
Posted: Sat Jun 04, 2005 1:44 am Post subject: Re: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
Hello,
you should either escape the tags within the htmldscription tag, or put the
the entire HTML you want to upload in a CDATA section.
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)
"Tmajarov" wrote in message @microsoft.com...
> Here are two requests I ran the first one that just uses a string in the
> htmldescription field works and posts an appointment, the second uses a
> html
> tagged string in the htmldescription field and fails with 400 bad request
> error:
>
> this works:
> "
>
> xmlns:e="http://schemas.microsoft.com/exchange/"
> xmlns:mapi="http://schemas.microsoft.com/mapi/"
> xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> xmlns:cal="urn:schemas:calendar:"
> xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
>
>
> urn:content-classes:appointment
> IPM.Appointment
> Test Appointment Subject
> test
> meetappt Location
> 2005-06-02T10:00:00.000Z
> 2005-06-02T10:30:00.000Z
> 0
> BUSY
> CONFIRMED
> 0
> 1
> tmajarov
> 1
>
>
> "
>
> This doesn't:
>
> "
>
> xmlns:e="http://schemas.microsoft.com/exchange/"
> xmlns:mapi="http://schemas.microsoft.com/mapi/"
> xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> xmlns:cal="urn:schemas:calendar:"
> xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
>
>
> urn:content-classes:appointment
> IPM.Appointment
> Test Appointment Subject
> TestTesting
> meetappt Location
> 2005-06-02T10:00:00.000Z
> 2005-06-02T10:30:00.000Z
> 0
> BUSY
> CONFIRMED
> 0
> 1
> tmajarov
> 1
>
>
> "
>
> Thanks again hope this helps elucidate the issue,
> Tom Majarov
> |
|
| Back to top |
|
 |
Tmajarov
Joined: 06 Aug 2007 Posts: 4
|
Posted: Fri Jun 03, 2005 5:58 pm Post subject: Re: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
Thanks for the suggestions...
I tried:
Dim body As String = "
W3HTML//EN"">TestTesting"
body = XmlConvert.EncodeName(body)
"" & body & ""
Setting the httpmail and mailheader content to text/html and it posted but
when viewed in the calendar it was still encoded.
_x003C__x0021_DOCTYPE_x0020_HTML_x0020_PUBLIC_x0020__x0022_-_x002F__x002F_W3C_x002F__x002F_DTD_x0020_W3HTML_x002F__x002F_EN_x0022__x003E__x003C_HTML_x003E__x003C_HEAD_x003E__x003C__x002F_HEAD_x003E__x003C_BODY_x003E_Test_x003C_BR_x003E_Testing_x003C__x002F_BODY_x003E__x003C__x002F_HTML_x003E_
I tried:
Dim body As String = "
W3HTML//EN"">TestTesting"
"" & body &
""
after adding sql to the xml name space declarations and got a 400 bad
request error.
I tried:
""
the appointment posted but there was no text at all because I guess the
CDATA call here caused the XML parser to skip it.
Am I missing something in these implementations?
Thanks again,
Tom M.
"Henning Krause [MVP]" wrote:
> Hello,
>
> you should either escape the tags within the htmldscription tag, or put the
> the entire HTML you want to upload in a CDATA section.
>
> Greetings,
> Henning Krause [MVP]
> ==========================
> Visit my website: http://www.infinitec.de
> Try my free Exchange Explorer: Mistaya
> (http://www.infinitec.de/software/mistaya.aspx)
>
>
> "Tmajarov" wrote in message
> @microsoft.com...
> > Here are two requests I ran the first one that just uses a string in the
> > htmldescription field works and posts an appointment, the second uses a
> > html
> > tagged string in the htmldescription field and fails with 400 bad request
> > error:
> >
> > this works:
> > "
> >
> > xmlns:e="http://schemas.microsoft.com/exchange/"
> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> > xmlns:cal="urn:schemas:calendar:"
> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> > xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
> >
> >
> > urn:content-classes:appointment
> > IPM.Appointment
> > Test Appointment Subject
> > test
> > meetappt Location
> > 2005-06-02T10:00:00.000Z
> > 2005-06-02T10:30:00.000Z
> > 0
> > BUSY
> > CONFIRMED
> > 0
> > 1
> > tmajarov
> > 1
> >
> >
> > "
> >
> > This doesn't:
> >
> > "
> >
> > xmlns:e="http://schemas.microsoft.com/exchange/"
> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> > xmlns:cal="urn:schemas:calendar:"
> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> > xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
> >
> >
> > urn:content-classes:appointment
> > IPM.Appointment
> > Test Appointment Subject
> > TestTesting
> > meetappt Location
> > 2005-06-02T10:00:00.000Z
> > 2005-06-02T10:30:00.000Z
> > 0
> > BUSY
> > CONFIRMED
> > 0
> > 1
> > tmajarov
> > 1
> >
> >
> > "
> >
> > Thanks again hope this helps elucidate the issue,
> > Tom Majarov
> >
>
>
> |
|
| Back to top |
|
 |
Henning Krause [MVP]
Joined: 05 Aug 2007 Posts: 2
|
Posted: Sat Jun 04, 2005 1:07 pm Post subject: Re: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
Hello,
it works fine if you just replace the chars with < and >.
And if you have any entities (like ) in your html code, you should
encode it as
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)
"Tmajarov" wrote in message @microsoft.com...
> Thanks for the suggestions...
> I tried:
> Dim body As String = "
> W3HTML//EN"">TestTesting"
>
> body = XmlConvert.EncodeName(body)
>
> "" & body & ""
>
> Setting the httpmail and mailheader content to text/html and it posted but
> when viewed in the calendar it was still encoded.
> _x003C__x0021_DOCTYPE_x0020_HTML_x0020_PUBLIC_x0020__x0022_-_x002F__x002F_W3C_x002F__x002F_DTD_x0020_W3HTML_x002F__x002F_EN_x0022__x003E__x003C_HTML_x003E__x003C_HEAD_x003E__x003C__x002F_HEAD_x003E__x003C_BODY_x003E_Test_x003C_BR_x003E_Testing_x003C__x002F_BODY_x003E__x003C__x002F_HTML_x003E_
>
> I tried:
> Dim body As String = "
> W3HTML//EN"">TestTesting"
>
> "" & body &
> ""
>
> after adding sql to the xml name space declarations and got a 400 bad
> request error.
>
> I tried:
> ""
> the appointment posted but there was no text at all because I guess the
> CDATA call here caused the XML parser to skip it.
>
> Am I missing something in these implementations?
> Thanks again,
> Tom M.
>
> "Henning Krause [MVP]" wrote:
>
>> Hello,
>>
>> you should either escape the tags within the htmldscription tag, or put
>> the
>> the entire HTML you want to upload in a CDATA section.
>>
>> Greetings,
>> Henning Krause [MVP]
>> ==========================
>> Visit my website: http://www.infinitec.de
>> Try my free Exchange Explorer: Mistaya
>> (http://www.infinitec.de/software/mistaya.aspx)
>>
>>
>> "Tmajarov" wrote in message
>> @microsoft.com...
>> > Here are two requests I ran the first one that just uses a string in
>> > the
>> > htmldescription field works and posts an appointment, the second uses a
>> > html
>> > tagged string in the htmldescription field and fails with 400 bad
>> > request
>> > error:
>> >
>> > this works:
>> > "
>> >
>> > xmlns:e="http://schemas.microsoft.com/exchange/"
>> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
>> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
>> > xmlns:cal="urn:schemas:calendar:"
>> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
>> > xmlns:header="urn:schemas:mailheader:"
>> > xmlns:mail="urn:schemas:httpmail:">
>> >
>> >
>> > urn:content-classes:appointment
>> > IPM.Appointment
>> > Test Appointment Subject
>> > test
>> > meetappt Location
>> > 2005-06-02T10:00:00.000Z
>> > 2005-06-02T10:30:00.000Z
>> > 0
>> > BUSY
>> > CONFIRMED
>> > 0
>> > 1
>> > tmajarov
>> > 1
>> >
>> >
>> > "
>> >
>> > This doesn't:
>> >
>> > "
>> >
>> > xmlns:e="http://schemas.microsoft.com/exchange/"
>> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
>> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
>> > xmlns:cal="urn:schemas:calendar:"
>> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
>> > xmlns:header="urn:schemas:mailheader:"
>> > xmlns:mail="urn:schemas:httpmail:">
>> >
>> >
>> > urn:content-classes:appointment
>> > IPM.Appointment
>> > Test Appointment Subject
>> > TestTesting
>> > meetappt Location
>> > 2005-06-02T10:00:00.000Z
>> > 2005-06-02T10:30:00.000Z
>> > 0
>> > BUSY
>> > CONFIRMED
>> > 0
>> > 1
>> > tmajarov
>> > 1
>> >
>> >
>> > "
>> >
>> > Thanks again hope this helps elucidate the issue,
>> > Tom Majarov
>> >
>>
>>
>> |
|
| Back to top |
|
 |
Tmajarov
Joined: 06 Aug 2007 Posts: 4
|
Posted: Mon Jun 06, 2005 9:40 am Post subject: Re: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
Works like a charm thanks for the advice.
Tom Majarov
"Henning Krause [MVP]" wrote:
> Hello,
> it works fine if you just replace the chars with .
>
> And if you have any entities (like ) in your html code, you should
> encode it as
>
> Greetings,
> Henning Krause [MVP]
> ==========================
> Visit my website: http://www.infinitec.de
> Try my free Exchange Explorer: Mistaya
> (http://www.infinitec.de/software/mistaya.aspx)
>
>
> "Tmajarov" wrote in message
> @microsoft.com...
> > Thanks for the suggestions...
> > I tried:
> > Dim body As String = "
> > W3HTML//EN"">TestTesting"
> >
> > body = XmlConvert.EncodeName(body)
> >
> > "" & body & ""
> >
> > Setting the httpmail and mailheader content to text/html and it posted but
> > when viewed in the calendar it was still encoded.
> > _x003C__x0021_DOCTYPE_x0020_HTML_x0020_PUBLIC_x0020__x0022_-_x002F__x002F_W3C_x002F__x002F_DTD_x0020_W3HTML_x002F__x002F_EN_x0022__x003E__x003C_HTML_x003E__x003C_HEAD_x003E__x003C__x002F_HEAD_x003E__x003C_BODY_x003E_Test_x003C_BR_x003E_Testing_x003C__x002F_BODY_x003E__x003C__x002F_HTML_x003E_
> >
> > I tried:
> > Dim body As String = "
> > W3HTML//EN"">TestTesting"
> >
> > "" & body &
> > ""
> >
> > after adding sql to the xml name space declarations and got a 400 bad
> > request error.
> >
> > I tried:
> > ""
> > the appointment posted but there was no text at all because I guess the
> > CDATA call here caused the XML parser to skip it.
> >
> > Am I missing something in these implementations?
> > Thanks again,
> > Tom M.
> >
> > "Henning Krause [MVP]" wrote:
> >
> >> Hello,
> >>
> >> you should either escape the tags within the htmldscription tag, or put
> >> the
> >> the entire HTML you want to upload in a CDATA section.
> >>
> >> Greetings,
> >> Henning Krause [MVP]
> >> ==========================
> >> Visit my website: http://www.infinitec.de
> >> Try my free Exchange Explorer: Mistaya
> >> (http://www.infinitec.de/software/mistaya.aspx)
> >>
> >>
> >> "Tmajarov" wrote in message
> >> @microsoft.com...
> >> > Here are two requests I ran the first one that just uses a string in
> >> > the
> >> > htmldescription field works and posts an appointment, the second uses a
> >> > html
> >> > tagged string in the htmldescription field and fails with 400 bad
> >> > request
> >> > error:
> >> >
> >> > this works:
> >> > "
> >> >
> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> >> > xmlns:cal="urn:schemas:calendar:"
> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> >> > xmlns:header="urn:schemas:mailheader:"
> >> > xmlns:mail="urn:schemas:httpmail:">
> >> >
> >> >
> >> > urn:content-classes:appointment
> >> > IPM.Appointment
> >> > Test Appointment Subject
> >> > test
> >> > meetappt Location
> >> > 2005-06-02T10:00:00.000Z
> >> > 2005-06-02T10:30:00.000Z
> >> > 0
> >> > BUSY
> >> > CONFIRMED
> >> > 0
> >> > 1
> >> > tmajarov
> >> > 1
> >> >
> >> >
> >> > "
> >> >
> >> > This doesn't:
> >> >
> >> > "
> >> >
> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> >> > xmlns:cal="urn:schemas:calendar:"
> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> >> > xmlns:header="urn:schemas:mailheader:"
> >> > xmlns:mail="urn:schemas:httpmail:">
> >> >
> >> >
> >> > urn:content-classes:appointment
> >> > IPM.Appointment
> >> > Test Appointment Subject
> >> > TestTesting
> >> > meetappt Location
> >> > 2005-06-02T10:00:00.000Z
> >> > 2005-06-02T10:30:00.000Z
> >> > 0
> >> > BUSY
> >> > CONFIRMED
> >> > 0
> >> > 1
> >> > tmajarov
> >> > 1
> >> >
> >> >
> >> > "
> >> >
> >> > Thanks again hope this helps elucidate the issue,
> >> > Tom Majarov
> >> >
> >>
> >>
> >>
>
>
> |
|
| Back to top |
|
 |
Breeze
Joined: 06 Aug 2007 Posts: 1
|
Posted: Wed Apr 18, 2007 5:26 pm Post subject: Re: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
would sth like this work:
string sBody = "line1line2";
sBody.Replace("<", "<");
sBody.Replace(">", ">");
sBody.Replace("&", "&");
I fired WEBDAV to add appointments with sBody as body text, then nothing
shows up in my calenar.
"Henning Krause [MVP]" wrote:
> Hello,
> it works fine if you just replace the chars with .
>
> And if you have any entities (like ) in your html code, you should
> encode it as
>
> Greetings,
> Henning Krause [MVP]
> ==========================
> Visit my website: http://www.infinitec.de
> Try my free Exchange Explorer: Mistaya
> (http://www.infinitec.de/software/mistaya.aspx)
>
>
> "Tmajarov" wrote in message
> @microsoft.com...
> > Thanks for the suggestions...
> > I tried:
> > Dim body As String = "
> > W3HTML//EN"">TestTesting"
> >
> > body = XmlConvert.EncodeName(body)
> >
> > "" & body & ""
> >
> > Setting the httpmail and mailheader content to text/html and it posted but
> > when viewed in the calendar it was still encoded.
> > _x003C__x0021_DOCTYPE_x0020_HTML_x0020_PUBLIC_x0020__x0022_-_x002F__x002F_W3C_x002F__x002F_DTD_x0020_W3HTML_x002F__x002F_EN_x0022__x003E__x003C_HTML_x003E__x003C_HEAD_x003E__x003C__x002F_HEAD_x003E__x003C_BODY_x003E_Test_x003C_BR_x003E_Testing_x003C__x002F_BODY_x003E__x003C__x002F_HTML_x003E_
> >
> > I tried:
> > Dim body As String = "
> > W3HTML//EN"">TestTesting"
> >
> > "" & body &
> > ""
> >
> > after adding sql to the xml name space declarations and got a 400 bad
> > request error.
> >
> > I tried:
> > ""
> > the appointment posted but there was no text at all because I guess the
> > CDATA call here caused the XML parser to skip it.
> >
> > Am I missing something in these implementations?
> > Thanks again,
> > Tom M.
> >
> > "Henning Krause [MVP]" wrote:
> >
> >> Hello,
> >>
> >> you should either escape the tags within the htmldscription tag, or put
> >> the
> >> the entire HTML you want to upload in a CDATA section.
> >>
> >> Greetings,
> >> Henning Krause [MVP]
> >> ==========================
> >> Visit my website: http://www.infinitec.de
> >> Try my free Exchange Explorer: Mistaya
> >> (http://www.infinitec.de/software/mistaya.aspx)
> >>
> >>
> >> "Tmajarov" wrote in message
> >> @microsoft.com...
> >> > Here are two requests I ran the first one that just uses a string in
> >> > the
> >> > htmldescription field works and posts an appointment, the second uses a
> >> > html
> >> > tagged string in the htmldescription field and fails with 400 bad
> >> > request
> >> > error:
> >> >
> >> > this works:
> >> > "
> >> >
> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> >> > xmlns:cal="urn:schemas:calendar:"
> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> >> > xmlns:header="urn:schemas:mailheader:"
> >> > xmlns:mail="urn:schemas:httpmail:">
> >> >
> >> >
> >> > urn:content-classes:appointment
> >> > IPM.Appointment
> >> > Test Appointment Subject
> >> > test
> >> > meetappt Location
> >> > 2005-06-02T10:00:00.000Z
> >> > 2005-06-02T10:30:00.000Z
> >> > 0
> >> > BUSY
> >> > CONFIRMED
> >> > 0
> >> > 1
> >> > tmajarov
> >> > 1
> >> >
> >> >
> >> > "
> >> >
> >> > This doesn't:
> >> >
> >> > "
> >> >
> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:"
> >> > xmlns:cal="urn:schemas:calendar:"
> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> >> > xmlns:header="urn:schemas:mailheader:"
> >> > xmlns:mail="urn:schemas:httpmail:">
> >> >
> >> >
> >> > urn:content-classes:appointment
> >> > IPM.Appointment
> >> > Test Appointment Subject
> >> > TestTesting
> >> > meetappt Location
> >> > 2005-06-02T10:00:00.000Z
> >> > 2005-06-02T10:30:00.000Z
> >> > 0
> >> > BUSY
> >> > CONFIRMED
> >> > 0
> >> > 1
> >> > tmajarov
> >> > 1
> >> >
> >> >
> >> > "
> >> >
> >> > Thanks again hope this helps elucidate the issue,
> >> > Tom Majarov
> >> >
> >>
> >>
> >>
>
>
> |
|
| Back to top |
|
 |
Henning Krause [MVP - Exc
Joined: 05 Aug 2007 Posts: 142
|
Posted: Thu Apr 19, 2007 3:14 am Post subject: Re: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
Hello,
I suppose you replaced the smaller and greater chars with their entity
equivalent...
> sBody.Replace("<", "<");
It's not visible here... If not.. you must replace with
>
Best regards,
Henning
"Breeze" wrote in message @microsoft.com...
> would sth like this work:
>
> string sBody = "line1line2";
> sBody.Replace("<", "<");
> sBody.Replace(">", ">");
> sBody.Replace("&", "&");
>
> I fired WEBDAV to add appointments with sBody as body text, then nothing
> shows up in my calenar.
>
>
> "Henning Krause [MVP]" wrote:
>
>> Hello,
>> it works fine if you just replace the chars with .
>>
>> And if you have any entities (like ) in your html code, you should
>> encode it as
>>
>> Greetings,
>> Henning Krause [MVP]
>> ==========================
>> Visit my website: http://www.infinitec.de
>> Try my free Exchange Explorer: Mistaya
>> (http://www.infinitec.de/software/mistaya.aspx)
>>
>>
>> "Tmajarov" wrote in message
>> @microsoft.com...
>> > Thanks for the suggestions...
>> > I tried:
>> > Dim body As String = "
>> > W3HTML//EN"">TestTesting"
>> >
>> > body = XmlConvert.EncodeName(body)
>> >
>> > "" & body & ""
>> >
>> > Setting the httpmail and mailheader content to text/html and it posted
>> > but
>> > when viewed in the calendar it was still encoded.
>> > _x003C__x0021_DOCTYPE_x0020_HTML_x0020_PUBLIC_x0020__x0022_-_x002F__x002F_W3C_x002F__x002F_DTD_x0020_W3HTML_x002F__x002F_EN_x0022__x003E__x003C_HTML_x003E__x003C_HEAD_x003E__x003C__x002F_HEAD_x003E__x003C_BODY_x003E_Test_x003C_BR_x003E_Testing_x003C__x002F_BODY_x003E__x003C__x002F_HTML_x003E_
>> >
>> > I tried:
>> > Dim body As String = "
>> > W3HTML//EN"">TestTesting"
>> >
>> > "" & body &
>> > ""
>> >
>> > after adding sql to the xml name space declarations and got a 400 bad
>> > request error.
>> >
>> > I tried:
>> > ""
>> > the appointment posted but there was no text at all because I guess the
>> > CDATA call here caused the XML parser to skip it.
>> >
>> > Am I missing something in these implementations?
>> > Thanks again,
>> > Tom M.
>> >
>> > "Henning Krause [MVP]" wrote:
>> >
>> >> Hello,
>> >>
>> >> you should either escape the tags within the htmldscription tag, or
>> >> put
>> >> the
>> >> the entire HTML you want to upload in a CDATA section.
>> >>
>> >> Greetings,
>> >> Henning Krause [MVP]
>> >> ==========================
>> >> Visit my website: http://www.infinitec.de
>> >> Try my free Exchange Explorer: Mistaya
>> >> (http://www.infinitec.de/software/mistaya.aspx)
>> >>
>> >>
>> >> "Tmajarov" wrote in message
>> >> @microsoft.com...
>> >> > Here are two requests I ran the first one that just uses a string in
>> >> > the
>> >> > htmldescription field works and posts an appointment, the second
>> >> > uses a
>> >> > html
>> >> > tagged string in the htmldescription field and fails with 400 bad
>> >> > request
>> >> > error:
>> >> >
>> >> > this works:
>> >> > "
>> >> >
>> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
>> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
>> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/"
>> >> > xmlns:x="xml:"
>> >> > xmlns:cal="urn:schemas:calendar:"
>> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
>> >> > xmlns:header="urn:schemas:mailheader:"
>> >> > xmlns:mail="urn:schemas:httpmail:">
>> >> >
>> >> >
>> >> > urn:content-classes:appointment
>> >> > IPM.Appointment
>> >> > Test Appointment Subject
>> >> > test
>> >> > meetappt Location
>> >> >
>> >> > dt:dt="dateTime.tz">2005-06-02T10:00:00.000Z
>> >> > 2005-06-02T10:30:00.000Z
>> >> > 0
>> >> > BUSY
>> >> > CONFIRMED
>> >> > 0
>> >> > 1
>> >> > tmajarov
>> >> > 1
>> >> >
>> >> >
>> >> > "
>> >> >
>> >> > This doesn't:
>> >> >
>> >> > "
>> >> >
>> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
>> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
>> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/"
>> >> > xmlns:x="xml:"
>> >> > xmlns:cal="urn:schemas:calendar:"
>> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
>> >> > xmlns:header="urn:schemas:mailheader:"
>> >> > xmlns:mail="urn:schemas:httpmail:">
>> >> >
>> >> >
>> >> > urn:content-classes:appointment
>> >> > IPM.Appointment
>> >> > Test Appointment Subject
>> >> > TestTesting
>> >> > meetappt Location
>> >> >
>> >> > dt:dt="dateTime.tz">2005-06-02T10:00:00.000Z
>> >> > 2005-06-02T10:30:00.000Z
>> >> > 0
>> >> > BUSY
>> >> > CONFIRMED
>> >> > 0
>> >> > 1
>> >> > tmajarov
>> >> > 1
>> >> >
>> >> >
>> >> > "
>> >> >
>> >> > Thanks again hope this helps elucidate the issue,
>> >> > Tom Majarov
>> >> >
>> >>
>> >>
>> >>
>>
>>
>> |
|
| Back to top |
|
 |
utiq
Joined: 06 Aug 2007 Posts: 1
|
Posted: Mon Apr 30, 2007 3:52 pm Post subject: Re: WEBDAV: how to get a Multiline body in webdav created ap |
|
|
You can resolve this probem with:
string sBody = "line1line2";
sBody = HttpUtility.HtmlEncode(sBody);
and in the structure XML of WEbDav put
"" & sBody & ""
And your message sent with HTML format
"Henning Krause [MVP - Exchange]" wrote:
> Hello,
>
> I suppose you replaced the smaller and greater chars with their entity
> equivalent...
>
> > sBody.Replace("<", "<");
>
> It's not visible here... If not.. you must replace with
> >
>
> Best regards,
> Henning
>
>
> "Breeze" wrote in message
> @microsoft.com...
> > would sth like this work:
> >
> > string sBody = "line1line2";
> > sBody.Replace("<", "<");
> > sBody.Replace(">", ">");
> > sBody.Replace("&", "&");
> >
> > I fired WEBDAV to add appointments with sBody as body text, then nothing
> > shows up in my calenar.
> >
> >
> > "Henning Krause [MVP]" wrote:
> >
> >> Hello,
> >> it works fine if you just replace the chars with .
> >>
> >> And if you have any entities (like ) in your html code, you should
> >> encode it as
> >>
> >> Greetings,
> >> Henning Krause [MVP]
> >> ==========================
> >> Visit my website: http://www.infinitec.de
> >> Try my free Exchange Explorer: Mistaya
> >> (http://www.infinitec.de/software/mistaya.aspx)
> >>
> >>
> >> "Tmajarov" wrote in message
> >> @microsoft.com...
> >> > Thanks for the suggestions...
> >> > I tried:
> >> > Dim body As String = "
> >> > W3HTML//EN"">TestTesting"
> >> >
> >> > body = XmlConvert.EncodeName(body)
> >> >
> >> > "" & body & ""
> >> >
> >> > Setting the httpmail and mailheader content to text/html and it posted
> >> > but
> >> > when viewed in the calendar it was still encoded.
> >> > _x003C__x0021_DOCTYPE_x0020_HTML_x0020_PUBLIC_x0020__x0022_-_x002F__x002F_W3C_x002F__x002F_DTD_x0020_W3HTML_x002F__x002F_EN_x0022__x003E__x003C_HTML_x003E__x003C_HEAD_x003E__x003C__x002F_HEAD_x003E__x003C_BODY_x003E_Test_x003C_BR_x003E_Testing_x003C__x002F_BODY_x003E__x003C__x002F_HTML_x003E_
> >> >
> >> > I tried:
> >> > Dim body As String = "
> >> > W3HTML//EN"">TestTesting"
> >> >
> >> > "" & body &
> >> > ""
> >> >
> >> > after adding sql to the xml name space declarations and got a 400 bad
> >> > request error.
> >> >
> >> > I tried:
> >> > ""
> >> > the appointment posted but there was no text at all because I guess the
> >> > CDATA call here caused the XML parser to skip it.
> >> >
> >> > Am I missing something in these implementations?
> >> > Thanks again,
> >> > Tom M.
> >> >
> >> > "Henning Krause [MVP]" wrote:
> >> >
> >> >> Hello,
> >> >>
> >> >> you should either escape the tags within the htmldscription tag, or
> >> >> put
> >> >> the
> >> >> the entire HTML you want to upload in a CDATA section.
> >> >>
> >> >> Greetings,
> >> >> Henning Krause [MVP]
> >> >> ==========================
> >> >> Visit my website: http://www.infinitec.de
> >> >> Try my free Exchange Explorer: Mistaya
> >> >> (http://www.infinitec.de/software/mistaya.aspx)
> >> >>
> >> >>
> >> >> "Tmajarov" wrote in message
> >> >> @microsoft.com...
> >> >> > Here are two requests I ran the first one that just uses a string in
> >> >> > the
> >> >> > htmldescription field works and posts an appointment, the second
> >> >> > uses a
> >> >> > html
> >> >> > tagged string in the htmldescription field and fails with 400 bad
> >> >> > request
> >> >> > error:
> >> >> >
> >> >> > this works:
> >> >> > "
> >> >> >
> >> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
> >> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> >> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/"
> >> >> > xmlns:x="xml:"
> >> >> > xmlns:cal="urn:schemas:calendar:"
> >> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> >> >> > xmlns:header="urn:schemas:mailheader:"
> >> >> > xmlns:mail="urn:schemas:httpmail:">
> >> >> >
> >> >> >
> >> >> > urn:content-classes:appointment
> >> >> > IPM.Appointment
> >> >> > Test Appointment Subject
> >> >> > test
> >> >> > meetappt Location
> >> >> >
> >> >> > dt:dt="dateTime.tz">2005-06-02T10:00:00.000Z
> >> >> > 2005-06-02T10:30:00.000Z
> >> >> > 0
> >> >> > BUSY
> >> >> > CONFIRMED
> >> >> > 0
> >> >> > 1
> >> >> > tmajarov
> >> >> > 1
> >> >> >
> >> >> >
> >> >> > "
> >> >> >
> >> >> > This doesn't:
> >> >> >
> >> >> > "
> >> >> >
> >> >> > xmlns:e="http://schemas.microsoft.com/exchange/"
> >> >> > xmlns:mapi="http://schemas.microsoft.com/mapi/"
> >> >> > xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/"
> >> >> > xmlns:x="xml:"
> >> >> > xmlns:cal="urn:schemas:calendar:"
> >> >> > xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> >> >> > xmlns:header="urn:schemas:mailheader:"
> >> >> > xmlns:mail="urn:schemas:httpmail:">
> >> >> >
> >> >> >
> >> >> > urn:content-classes:appointment
> >> >> > IPM.Appointment
> >> >> > Test Appointment Subject
> >> >> > TestTesting
> >> >> > meetappt Location
> >> >> >
> >> >> > dt:dt="dateTime.tz">2005-06-02T10:00:00.000Z
> >> >> > 2005-06-02T10:30:00.000Z
> >> >> > 0
> >> >> > BUSY
> >> >> > CONFIRMED
> >> >> > 0
> >> >> > 1
> >> >> > tmajarov
> >> >> > 1
> >> >> >
> >> >> >
> >> >> > "
> >> >> >
> >> >> > Thanks again hope this helps elucidate the issue,
> >> >> > Tom Majarov
> >> >> >
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Tom or Mindy? Create IPM.DistList with WebDav and VB.NET?? Hi. Would be very grateful if anyone could point me in the right direction... I am trying to create a personal distribution list in a users contacts folder with webdav (Why is this so carefully left out of the Exchange SDK?) I figured out that http://sche
webdav = get the description of an event in Exchange Hi there, Im trying to display the description or message (subject, dtstart, dtend are all ok) of a calendar entry but I cannot find which schema it belongs to; Is it: or: or: urn:sc
How to send message with embbeeded images using WebDAV? Hello, How do i send message with embeeded images using WebDAV? In outlook i need to set the CID field of the attachemnt and than using ![]() WebDav Authentication I'm attempting to write a WebDAV to access contacts, but it is failing when I try the I receive a WebException and conversion from string to double where indicated below I've verified the path to the DL
WebDAV and Exchange Archiving Hello, I have a question regarding how webDAV accesses the Exchange store. Does it go directly to the mailbox, or does it go through the Hub Transport? We are doing an Exchange calendar integration for our application, and it is important that our method |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|