Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot

Links

XODOX
Impressum

#1: Re: PHP 5.3 SoapClient Stripping HTML special characters

Posted on 2011-08-19 17:33:43 by Richard Quadling

On 19 August 2011 16:16, James Crow <james@ultratans.com> wrote:
> Hi all,
>
> I am using the SOAP client to retrieve data from a web server. One field
> in the returned object is a text string that may contain embedded carriage
> returns. If I look at the raw packets they appear as '&#13;' in the string.
> When I get the string in the SoapClient the carriage return has been
> stripped. So far I have been unable to find a setting that will leave this
> embedded character in place.
>
> Can someone point me in the right direction?
>
> Thanks,
> James

Can you supply a WSDL URL for the service? I can quickly verify what
you are seeing.

Can you tell us how you perceive the missing character? If you are
echoing it to a browser, then there will be no visual line break as
that is not a HTML character.

But if you wrap the output in <pre>...</pre> tags, you should see it just fine.




--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#2: Re: PHP 5.3 SoapClient Stripping HTML special characters

Posted on 2011-08-19 18:13:46 by James Crow

On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling <rquadling@gmail.com>
wrote:
> On 19 August 2011 16:16, James Crow <james@ultratans.com> wrote:
>> Hi all,
>>
>> I am using the SOAP client to retrieve data from a web server. One
field
>> in the returned object is a text string that may contain embedded
>> carriage
>> returns. If I look at the raw packets they appear as '
' in the
>> string.
>> When I get the string in the SoapClient the carriage return has been
>> stripped. So far I have been unable to find a setting that will leave
>> this
>> embedded character in place.
>>
>> Can someone point me in the right direction?
>>
>> Thanks,
>> James
>
> Can you supply a WSDL URL for the service? I can quickly verify what
> you are seeing.
>
> Can you tell us how you perceive the missing character? If you are
> echoing it to a browser, then there will be no visual line break as
> that is not a HTML character.
>
> But if you wrap the output in <pre>...</pre> tags, you should see it
just
> fine.
>
>
>
>
> --
> Richard Quadling
> Twitter : EE : Zend : PHPDoc
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

Richard,

Thanks for the response. My initial email appears garbled somewhat.
Between the single quotes should have been &amp;#13;

The WDSL is:
http://clients.mindbodyonline.com/api/0_5/AppointmentService .asmx?WSDL

I am using functions which return (among other things) an Appointment
object. This Appointment object has a property named Notes. The Notes item
in their software is displayed and edited in a html textarea field. If a
newline is entered in the textarea field I need it to be present in the
string in the SoapClient.

To actually connect to with a SOAP client requires a username and
password.

Thanks,
James


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#3: Re: PHP 5.3 SoapClient Stripping HTML special characters

Posted on 2011-08-19 18:30:27 by Richard Quadling

--20cf3074d8346b050104aade4022
Content-Type: text/plain; charset=UTF-8

On 19 August 2011 17:13, James Crow <james@ultratans.com> wrote:
> On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling <rquadling@gmail.com>
> wrote:
>> On 19 August 2011 16:16, James Crow <james@ultratans.com> wrote:
>>> Hi all,
>>>
>>> I am using the SOAP client to retrieve data from a web server. One
> field
>>> in the returned object is a text string that may contain embedded
>>> carriage
>>> returns. If I look at the raw packets they appear as '
> ' in the
>>> string.
>>> When I get the string in the SoapClient the carriage return has been
>>> stripped. So far I have been unable to find a setting that will leave
>>> this
>>> embedded character in place.
>>>
>>> Can someone point me in the right direction?
>>>
>>> Thanks,
>>> James
>>
>> Can you supply a WSDL URL for the service? I can quickly verify what
>> you are seeing.
>>
>> Can you tell us how you perceive the missing character? If you are
>> echoing it to a browser, then there will be no visual line break as
>> that is not a HTML character.
>>
>> But if you wrap the output in <pre>...</pre> tags, you should see it
> just
>> fine.
>>
>>
>>
>>
>> --
>> Richard Quadling
>> Twitter : EE : Zend : PHPDoc
>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>
> Richard,
>
> Thanks for the response. My initial email appears garbled somewhat.
> Between the single quotes should have been &amp;#13;
>
> The WDSL is:
> http://clients.mindbodyonline.com/api/0_5/AppointmentService .asmx?WSDL
>
> I am using functions which return (among other things) an Appointment
> object. This Appointment object has a property named Notes. The Notes item
> in their software is displayed and edited in a html textarea field. If a
> newline is entered in the textarea field I need it to be present in the
> string in the SoapClient.
>
> To actually connect to with a SOAP client requires a username and
> password.
>
> Thanks,
> James
>
>

What you need to determine is the EXACT content.

Can you dump the $o_Service->__getLastResponse() to a file, and zip it?

I have a framework that I use to test SOAP services. It isn't 100%
automatic, but it doesn't take too long.

I've got it working as far as I can without the credentials.

Hopefully you can add them in and the rest of the code should work.

I assume it is just a SoapHeader you need to add.

Running the consume.php script currently outputs ...

Request Headers
---------------
POST /api/0_5/AppointmentService.asmx HTTP/1.1
Host: clients.mindbodyonline.com
Connection: Keep-Alive
User-Agent: PHP
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://clients.mindbodyonline.com/api/0_5/GetScheduleItems"
Content-Length: 742


Request (XML)
-------------
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="http://clients.mindbodyonline.com/api/0_5">
<SOAP-ENV:Body>
<ns1:GetScheduleItems>
<ns1:Request>
<ns1:XMLDetail xsi:nil="true" />
<ns1:PageSize xsi:nil="true" />
<ns1:CurrentPageIndex xsi:nil="true" />
<ns1:LocationIDs>
<ns1:int>1</ns1:int>
<ns1:int>2</ns1:int>
<ns1:int>3</ns1:int>
</ns1:LocationIDs>
<ns1:StaffIDs>
<ns1:long>100</ns1:long>
<ns1:long>200</ns1:long>
<ns1:long>300</ns1:long>
</ns1:StaffIDs>
<ns1:StartDate>2011-01-01T00:00:00Z</ns1:StartDate>
<ns1:EndDate>2011-12-31T23:59:59Z</ns1:EndDate>
</ns1:Request>
</ns1:GetScheduleItems>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response Headers
----------------
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
P3P: CAO DSP COR CUR TAIa OUR NOR UNI STA
Date: Fri, 19 Aug 2011 16:28:44 GMT
Content-Length: 614

Response (XML)
--------------
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetScheduleItemsResponse xmlns="http://clients.mindbodyonline.com/api/0_5">
<GetScheduleItemsResult>
<Status>InvalidCredentials</Status>
<Message>SourceCredentials must be provided.</Message>
<XMLDetail>Full</XMLDetail>
<ResultCount>0</ResultCount>
<CurrentPageIndex>0</CurrentPageIndex>
<TotalPageCount>0</TotalPageCount>
</GetScheduleItemsResult>
</GetScheduleItemsResponse>
</soap:Body>
</soap:Envelope>


Response (Interpreted)
----------------------
GetScheduleItemsResult Object
(
[StaffMembers] =>
[Status] => InvalidCredentials
[Message] => SourceCredentials must be provided.
[XMLDetail] => Full
[ResultCount] => 0
[CurrentPageIndex] => 0
[TotalPageCount] => 0
)


--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

--20cf3074d8346b050104aade4022
Content-Type: application/zip; name="RAQ Soap Test.zip"
Content-Disposition: attachment; filename="RAQ Soap Test.zip"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_grjdkr6h0

UEsDBBQAAgAIAJaLEz+/Z1OMlgMAAHwLAAALAAAAY29uc3VtZS5waHDtVm1v 2kgQ/hwk/sOoimQj
2W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DMyLZVkAm1LrMrKJJ+qy7DaedW7G3Ca1tulqMP0 naOizhJ2mMTGGuck
7ZPn/4ODtAQ04CLtx0ujnKT3NDPKTVo9J6OmsZqrdI6036pdcvXqQ+ctFCdI nSVk0tamMZX5Derp
kd/+PI9IYkYYPhPFLLHfazI49Cib9B00v0lZAn+amOQ1IK/+s5KovIInp6i8 er0mg0OPk5fnOPrX
lpf4++b11n8BUEsBAhQAFAACAAgAlosTP79nU4yWAwAAfAsAAAsAAAAAAAAA AQAgCAAAAAAAAGNv
bnN1bWUucGhwUEsBAhQAFAACAAgAI4oTPxzXhYdQDAAAyEwAAB0AAAAAAAAA AQAgCAAAvwMAAEFw
cG9pbnRtZW50X3gwMDIwX1NlcnZpY2UucGhwUEsFBgAAAAACAAIAhAAAAEoQ AAAAAA==

--20cf3074d8346b050104aade4022
Content-Type: text/plain; charset=us-ascii

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--20cf3074d8346b050104aade4022--

Report this message

#4: Re: PHP 5.3 SoapClient Stripping HTML special characters

Posted on 2011-08-19 20:28:59 by James Crow

On Fri, 19 Aug 2011 17:30:27 +0100, Richard Quadling <rquadling@gmail.com>
wrote:
> On 19 August 2011 17:13, James Crow <james@ultratans.com> wrote:
>> On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling
>> <rquadling@gmail.com>
>> wrote:
>>> On 19 August 2011 16:16, James Crow <james@ultratans.com> wrote:
>>>> Hi all,
>>>>
>>>> I am using the SOAP client to retrieve data from a web server. One
>> field
>>>> in the returned object is a text string that may contain embedded
>>>> carriage
>>>> returns. If I look at the raw packets they appear as '
>> ' in the
>>>> string.
>>>> When I get the string in the SoapClient the carriage return has been
>>>> stripped. So far I have been unable to find a setting that will leave
>>>> this
>>>> embedded character in place.
>>>>
>>>> Can someone point me in the right direction?
>>>>
>>>> Thanks,
>>>> James
>>>
>>> Can you supply a WSDL URL for the service? I can quickly verify what
>>> you are seeing.
>>>
>>> Can you tell us how you perceive the missing character? If you are
>>> echoing it to a browser, then there will be no visual line break as
>>> that is not a HTML character.
>>>
>>> But if you wrap the output in <pre>...</pre> tags, you should see it
>> just
>>> fine.
>>>
>>>
>>>
>>>
>>> --
>>> Richard Quadling
>>> Twitter : EE : Zend : PHPDoc
>>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>>
>> Richard,
>>
>> Thanks for the response. My initial email appears garbled somewhat.
>> Between the single quotes should have been &#13;
>>
>> The WDSL is:
>> http://clients.mindbodyonline.com/api/0_5/AppointmentService .asmx?WSDL
>>
>> I am using functions which return (among other things) an Appointment
>> object. This Appointment object has a property named Notes. The Notes
>> item
>> in their software is displayed and edited in a html textarea field. If
a
>> newline is entered in the textarea field I need it to be present in the
>> string in the SoapClient.
>>
>> To actually connect to with a SOAP client requires a username and
>> password.
>>
>> Thanks,
>> James
>>
>>
>
> What you need to determine is the EXACT content.
>
> Can you dump the $o_Service->__getLastResponse() to a file, and zip it?
>
> I have a framework that I use to test SOAP services. It isn't 100%
> automatic, but it doesn't take too long.
>
> I've got it working as far as I can without the credentials.
>
> Hopefully you can add them in and the rest of the code should work.
>
> I assume it is just a SoapHeader you need to add.
>
> Running the consume.php script currently outputs ...
>
> Request Headers
> ---------------
> POST /api/0_5/AppointmentService.asmx HTTP/1.1
> Host: clients.mindbodyonline.com
> Connection: Keep-Alive
> User-Agent: PHP
> Content-Type: text/xml; charset=utf-8
> SOAPAction: "http://clients.mindbodyonline.com/api/0_5/GetScheduleItems"
> Content-Length: 742
>
>
> Request (XML)
> -------------
> <?xml version="1.0" encoding="utf-8"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
xmlns:ns1="http://clients.mindbodyonline.com/api/0_5">
> <SOAP-ENV:Body>
> <ns1:GetScheduleItems>
> <ns1:Request>
> <ns1:XMLDetail xsi:nil="true" />
> <ns1:PageSize xsi:nil="true" />
> <ns1:CurrentPageIndex xsi:nil="true" />
> <ns1:LocationIDs>
> <ns1:int>1</ns1:int>
> <ns1:int>2</ns1:int>
> <ns1:int>3</ns1:int>
> </ns1:LocationIDs>
> <ns1:StaffIDs>
> <ns1:long>100</ns1:long>
> <ns1:long>200</ns1:long>
> <ns1:long>300</ns1:long>
> </ns1:StaffIDs>
> <ns1:StartDate>2011-01-01T00:00:00Z</ns1:StartDate>
> <ns1:EndDate>2011-12-31T23:59:59Z</ns1:EndDate>
> </ns1:Request>
> </ns1:GetScheduleItems>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> Response Headers
> ----------------
> HTTP/1.1 200 OK
> Cache-Control: private, max-age=0
> Content-Type: text/xml; charset=utf-8
> Server: Microsoft-IIS/7.5
> X-AspNet-Version: 2.0.50727
> X-Powered-By: ASP.NET
> P3P: CAO DSP COR CUR TAIa OUR NOR UNI STA
> Date: Fri, 19 Aug 2011 16:28:44 GMT
> Content-Length: 614
>
> Response (XML)
> --------------
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <soap:Body>
> <GetScheduleItemsResponse
> xmlns="http://clients.mindbodyonline.com/api/0_5">
> <GetScheduleItemsResult>
> <Status>InvalidCredentials</Status>
> <Message>SourceCredentials must be provided.</Message>
> <XMLDetail>Full</XMLDetail>
> <ResultCount>0</ResultCount>
> <CurrentPageIndex>0</CurrentPageIndex>
> <TotalPageCount>0</TotalPageCount>
> </GetScheduleItemsResult>
> </GetScheduleItemsResponse>
> </soap:Body>
> </soap:Envelope>
>
>
> Response (Interpreted)
> ----------------------
> GetScheduleItemsResult Object
> (
> [StaffMembers] =>
> [Status] => InvalidCredentials
> [Message] => SourceCredentials must be provided.
> [XMLDetail] => Full
> [ResultCount] => 0
> [CurrentPageIndex] => 0
> [TotalPageCount] => 0
> )

I entered my login credentials in the consume.php script and changed it to
dump __getLastResponse() to a text file. I do not want to include the
entire file because it contains customer information, but I did look
through the file with vi. The Notes /Notes XMl items do not contain
embedded carriage returns or line feeds. I think this is a bug in the SOAP
service and not in the PHP SoapClient.

Thanks,
James


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#5: Re: PHP 5.3 SoapClient Stripping HTML special characters

Posted on 2011-08-19 22:12:21 by Richard Quadling

On 19 August 2011 19:28, James Crow <james@ultratans.com> wrote:
> On Fri, 19 Aug 2011 17:30:27 +0100, Richard Quadling <rquadling@gmail.com=
>
> wrote:
>> On 19 August 2011 17:13, James Crow <james@ultratans.com> wrote:
>>> On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling
>>> <rquadling@gmail.com>
>>> wrote:
>>>> On 19 August 2011 16:16, James Crow <james@ultratans.com> wrote:
>>>>> Hi all,
>>>>>
>>>>> I am using the SOAP client to retrieve data from a web server. One
>>> field
>>>>> in the returned object is a text string that may contain embedded
>>>>> carriage
>>>>> returns. If I look at the raw packets they appear as '
>>> ' in the
>>>>> string.
>>>>> When I get the string in the SoapClient the carriage return has been
>>>>> stripped. So far I have been unable to find a setting that will leave
>>>>> this
>>>>> embedded character in place.
>>>>>
>>>>> Can someone point me in the right direction?
>>>>>
>>>>> Thanks,
>>>>> James
>>>>
>>>> Can you supply a WSDL URL for the service? I can quickly verify what
>>>> you are seeing.
>>>>
>>>> Can you tell us how you perceive the missing character? If you are
>>>> echoing it to a browser, then there will be no visual line break as
>>>> that is not a HTML character.
>>>>
>>>> But if you wrap the output in <pre>...</pre> tags, you should see it
>>> just
>>>> fine.
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Richard Quadling
>>>> Twitter : EE : Zend : PHPDoc
>>>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>>>
>>> Richard,
>>>
>>> Thanks for the response. My initial email appears garbled somewhat.
>>> Between the single quotes should have been &#13;
>>>
>>> The WDSL is:
>>> http://clients.mindbodyonline.com/api/0_5/AppointmentService .asmx?WSDL
>>>
>>> I am using functions which return (among other things) an Appointment
>>> object. This Appointment object has a property named Notes. The Notes
>>> item
>>> in their software is displayed and edited in a html textarea field. If
> a
>>> newline is entered in the textarea field I need it to be present in the
>>> string in the SoapClient.
>>>
>>> To actually connect to with a SOAP client requires a username and
>>> password.
>>>
>>> Thanks,
>>> James
>>>
>>>
>>
>> What you need to determine is the EXACT content.
>>
>> Can you dump the $o_Service->__getLastResponse() to a file, and zip it?
>>
>> I have a framework that I use to test SOAP services. It isn't 100%
>> automatic, but it doesn't take too long.
>>
>> I've got it working as far as I can without the credentials.
>>
>> Hopefully you can add them in and the rest of the code should work.
>>
>> I assume it is just a SoapHeader you need to add.
>>
>> Running the consume.php script currently outputs ...
>>
>> Request Headers
>> ---------------
>> POST /api/0_5/AppointmentService.asmx HTTP/1.1
>> Host: clients.mindbodyonline.com
>> Connection: Keep-Alive
>> User-Agent: PHP
>> Content-Type: text/xml; charset=3Dutf-8
>> SOAPAction: "http://clients.mindbodyonline.com/api/0_5/GetScheduleItems"
>> Content-Length: 742
>>
>>
>> Request (XML)
>> -------------
>> <?xml version=3D"1.0" encoding=3D"utf-8"?>
>> <SOAP-ENV:Envelope
>> xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/"
>> à à à à à à à à à àxml=
ns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
>>
> xmlns:ns1=3D"http://clients.mindbodyonline.com/api/0_5">
>> à <SOAP-ENV:Body>
>> à à <ns1:GetScheduleItems>
>> à à à <ns1:Request>
>> à à à à <ns1:XMLDetail xsi:nil=3D"true" />
>> à à à à <ns1:PageSize xsi:nil=3D"true" />
>> à à à à <ns1:CurrentPageIndex xsi:nil=3D"true" />
>> à à à à <ns1:LocationIDs>
>> à à à à à <ns1:int>1</ns1:int>
>> à à à à à <ns1:int>2</ns1:int>
>> à à à à à <ns1:int>3</ns1:int>
>> à à à à </ns1:LocationIDs>
>> à à à à <ns1:StaffIDs>
>> à à à à à <ns1:long>100</ns1:long>
>> à à à à à <ns1:long>200</ns1:long>
>> à à à à à <ns1:long>300</ns1:long>
>> à à à à </ns1:StaffIDs>
>> à à à à <ns1:StartDate>2011-01-01T00:00:00Z</ns1:Sta=
rtDate>
>> à à à à <ns1:EndDate>2011-12-31T23:59:59Z</ns1:EndDa=
te>
>> à à à </ns1:Request>
>> à à </ns1:GetScheduleItems>
>> à </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>> Response Headers
>> ----------------
>> HTTP/1.1 200 OK
>> Cache-Control: private, max-age=3D0
>> Content-Type: text/xml; charset=3Dutf-8
>> Server: Microsoft-IIS/7.5
>> X-AspNet-Version: 2.0.50727
>> X-Powered-By: ASP.NET
>> P3P: CAO DSP COR CUR TAIa OUR NOR UNI STA
>> Date: Fri, 19 Aug 2011 16:28:44 GMT
>> Content-Length: 614
>>
>> Response (XML)
>> --------------
>> <?xml version=3D"1.0" encoding=3D"utf-8"?>
>> <soap:Envelope xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/"
>> à à à à à à à àxmlns:xsi=3D"http=
://www.w3.org/2001/XMLSchema-instance"
>> à à à à à à à àxmlns:xsd=3D"http=
://www.w3.org/2001/XMLSchema">
>> à <soap:Body>
>> à à <GetScheduleItemsResponse
>> à à xmlns=3D"http://clients.mindbodyonline.com/api/0_5">
>> à à à <GetScheduleItemsResult>
>> à à à à <Status>InvalidCredentials</Status>
>> à à à à <Message>SourceCredentials must be provided.=
</Message>
>> à à à à <XMLDetail>Full</XMLDetail>
>> à à à à <ResultCount>0</ResultCount>
>> à à à à <CurrentPageIndex>0</CurrentPageIndex>
>> à à à à <TotalPageCount>0</TotalPageCount>
>> à à à </GetScheduleItemsResult>
>> à à </GetScheduleItemsResponse>
>> à </soap:Body>
>> </soap:Envelope>
>>
>>
>> Response (Interpreted)
>> ----------------------
>> GetScheduleItemsResult Object
>> (
>> à à [StaffMembers] =3D>
>> à à [Status] =3D> InvalidCredentials
>> à à [Message] =3D> SourceCredentials must be provided.
>> à à [XMLDetail] =3D> Full
>> à à [ResultCount] =3D> 0
>> à à [CurrentPageIndex] =3D> 0
>> à à [TotalPageCount] =3D> 0
>> )
>
> I entered my login credentials in the consume.php script and changed it t=
o
> dump __getLastResponse() to a text file. I do not want to include the
> entire file because it contains customer information, but I did look
> through the file with vi. The Notes /Notes XMl items do not contain
> embedded carriage returns or line feeds. I think this is a bug in the SOA=
P
> service and not in the PHP SoapClient.
>
> Thanks,
> James
>
>

So, at this stage, proving the lack of the returns is all I can do.

Are you responsible for the service?



--=20
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#6: Re: PHP 5.3 SoapClient Stripping HTML special characters

Posted on 2011-08-19 22:18:01 by James Crow

On Fri, 19 Aug 2011 21:12:21 +0100, Richard Quadling <rquadling@gmail.com>
wrote:
> On 19 August 2011 19:28, James Crow <james@ultratans.com> wrote:
>> On Fri, 19 Aug 2011 17:30:27 +0100, Richard Quadling
>> <rquadling@gmail.com>
>> wrote:
>>> On 19 August 2011 17:13, James Crow <james@ultratans.com> wrote:
>>>> On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling
>>>> <rquadling@gmail.com>
>>>> wrote:
>>>>> On 19 August 2011 16:16, James Crow <james@ultratans.com> wrote:
>>>>>> Hi all,
>>>>>>
>>>>>> I am using the SOAP client to retrieve data from a web server. One
>>>> field
>>>>>> in the returned object is a text string that may contain embedded
>>>>>> carriage
>>>>>> returns. If I look at the raw packets they appear as '
>>>> ' in the
>>>>>> string.
>>>>>> When I get the string in the SoapClient the carriage return has
been
>>>>>> stripped. So far I have been unable to find a setting that will
leave
>>>>>> this
>>>>>> embedded character in place.
>>>>>>
>>>>>> Can someone point me in the right direction?
>>>>>>
>>>>>> Thanks,
>>>>>> James
>>>>>
>>>>> Can you supply a WSDL URL for the service? I can quickly verify what
>>>>> you are seeing.
>>>>>
>>>>> Can you tell us how you perceive the missing character? If you are
>>>>> echoing it to a browser, then there will be no visual line break as
>>>>> that is not a HTML character.
>>>>>
>>>>> But if you wrap the output in <pre>...</pre> tags, you should see it
>>>> just
>>>>> fine.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Richard Quadling
>>>>> Twitter : EE : Zend : PHPDoc
>>>>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>>>>
>>>> Richard,
>>>>
>>>> Thanks for the response. My initial email appears garbled somewhat.
>>>> Between the single quotes should have been
>>>>
>>>> The WDSL is:
>>>>
http://clients.mindbodyonline.com/api/0_5/AppointmentService .asmx?WSDL
>>>>
>>>> I am using functions which return (among other things) an Appointment
>>>> object. This Appointment object has a property named Notes. The Notes
>>>> item
>>>> in their software is displayed and edited in a html textarea field.
If
>> a
>>>> newline is entered in the textarea field I need it to be present in
the
>>>> string in the SoapClient.
>>>>
>>>> To actually connect to with a SOAP client requires a username and
>>>> password.
>>>>
>>>> Thanks,
>>>> James
>>>>
>>>>
>>>
>>> What you need to determine is the EXACT content.
>>>
>>> Can you dump the $o_Service->__getLastResponse() to a file, and zip
it?
>>>
>>> I have a framework that I use to test SOAP services. It isn't 100%
>>> automatic, but it doesn't take too long.
>>>
>>> I've got it working as far as I can without the credentials.
>>>
>>> Hopefully you can add them in and the rest of the code should work.
>>>
>>> I assume it is just a SoapHeader you need to add.
>>>
>>> Running the consume.php script currently outputs ...
>>>
>>> Request Headers
>>> ---------------
>>> POST /api/0_5/AppointmentService.asmx HTTP/1.1
>>> Host: clients.mindbodyonline.com
>>> Connection: Keep-Alive
>>> User-Agent: PHP
>>> Content-Type: text/xml; charset=utf-8
>>> SOAPAction:
"http://clients.mindbodyonline.com/api/0_5/GetScheduleItems"
>>> Content-Length: 742
>>>
>>>
>>> Request (XML)
>>> -------------
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <SOAP-ENV:Envelope
>>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>>> à à à à à à à à à
>>> àxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>
>> xmlns:ns1="http://clients.mindbodyonline.com/api/0_5">
>>> à <SOAP-ENV:Body>
>>> à à <ns1:GetScheduleItems>
>>> à à à <ns1:Request>
>>> à à à à <ns1:XMLDetail xsi:nil="true" />
>>> à à à à <ns1:PageSize xsi:nil="true" />
>>> à à à à <ns1:CurrentPageIndex xsi:nil="true" />
>>> à à à à <ns1:LocationIDs>
>>> à à à à à <ns1:int>1</ns1:int>
>>> à à à à à <ns1:int>2</ns1:int>
>>> à à à à à <ns1:int>3</ns1:int>
>>> à à à à </ns1:LocationIDs>
>>> à à à à <ns1:StaffIDs>
>>> à à à à à <ns1:long>100</ns1:long>
>>> à à à à à <ns1:long>200</ns1:long>
>>> à à à à à <ns1:long>300</ns1:long>
>>> à à à à </ns1:StaffIDs>
>>> à à à à <ns1:StartDate>2011-01-01T00:00:00Z</ns1:StartDate>
>>> à à à à <ns1:EndDate>2011-12-31T23:59:59Z</ns1:EndDate>
>>> à à à </ns1:Request>
>>> à à </ns1:GetScheduleItems>
>>> à </SOAP-ENV:Body>
>>> </SOAP-ENV:Envelope>
>>>
>>> Response Headers
>>> ----------------
>>> HTTP/1.1 200 OK
>>> Cache-Control: private, max-age=0
>>> Content-Type: text/xml; charset=utf-8
>>> Server: Microsoft-IIS/7.5
>>> X-AspNet-Version: 2.0.50727
>>> X-Powered-By: ASP.NET
>>> P3P: CAO DSP COR CUR TAIa OUR NOR UNI STA
>>> Date: Fri, 19 Aug 2011 16:28:44 GMT
>>> Content-Length: 614
>>>
>>> Response (XML)
>>> --------------
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>>> à à à à à à à àxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> à à à à à à à àxmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>> à <soap:Body>
>>> à à <GetScheduleItemsResponse
>>> à à xmlns="http://clients.mindbodyonline.com/api/0_5">
>>> à à à <GetScheduleItemsResult>
>>> à à à à <Status>InvalidCredentials</Status>
>>> à à à à <Message>SourceCredentials must be provided.</Message>
>>> à à à à <XMLDetail>Full</XMLDetail>
>>> à à à à <ResultCount>0</ResultCount>
>>> à à à à <CurrentPageIndex>0</CurrentPageIndex>
>>> à à à à <TotalPageCount>0</TotalPageCount>
>>> à à à </GetScheduleItemsResult>
>>> à à </GetScheduleItemsResponse>
>>> à </soap:Body>
>>> </soap:Envelope>
>>>
>>>
>>> Response (Interpreted)
>>> ----------------------
>>> GetScheduleItemsResult Object
>>> (
>>> à à [StaffMembers] =>
>>> à à [Status] => InvalidCredentials
>>> à à [Message] => SourceCredentials must be provided.
>>> à à [XMLDetail] => Full
>>> à à [ResultCount] => 0
>>> à à [CurrentPageIndex] => 0
>>> à à [TotalPageCount] => 0
>>> )
>>
>> I entered my login credentials in the consume.php script and changed it
>> to
>> dump __getLastResponse() to a text file. I do not want to include the
>> entire file because it contains customer information, but I did look
>> through the file with vi. The Notes /Notes XMl items do not contain
>> embedded carriage returns or line feeds. I think this is a bug in the
>> SOAP
>> service and not in the PHP SoapClient.
>>
>> Thanks,
>> James
>>
>>
>
> So, at this stage, proving the lack of the returns is all I can do.
>
> Are you responsible for the service?

Unfortunately I am not responsible for the service. I can only bring it
their attention and try to get them to fix it. Using your code, it is easy
to display exactly what the problem is.

Thank you,
James


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#7: Re: PHP 5.3 SoapClient Stripping HTML special characters

Posted on 2011-08-19 22:22:05 by Richard Quadling

On 19 August 2011 21:18, James Crow <james@ultratans.com> wrote:
> On Fri, 19 Aug 2011 21:12:21 +0100, Richard Quadling <rquadling@gmail.com=
>
> wrote:
>> On 19 August 2011 19:28, James Crow <james@ultratans.com> wrote:
>>> On Fri, 19 Aug 2011 17:30:27 +0100, Richard Quadling
>>> <rquadling@gmail.com>
>>> wrote:
>>>> On 19 August 2011 17:13, James Crow <james@ultratans.com> wrote:
>>>>> On Fri, 19 Aug 2011 16:33:43 +0100, Richard Quadling
>>>>> <rquadling@gmail.com>
>>>>> wrote:
>>>>>> On 19 August 2011 16:16, James Crow <james@ultratans.com> wrote:
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I am using the SOAP client to retrieve data from a web server. One
>>>>> field
>>>>>>> in the returned object is a text string that may contain embedded
>>>>>>> carriage
>>>>>>> returns. If I look at the raw packets they appear as '
>>>>> ' in the
>>>>>>> string.
>>>>>>> When I get the string in the SoapClient the carriage return has
> been
>>>>>>> stripped. So far I have been unable to find a setting that will
> leave
>>>>>>> this
>>>>>>> embedded character in place.
>>>>>>>
>>>>>>> Can someone point me in the right direction?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> James
>>>>>>
>>>>>> Can you supply a WSDL URL for the service? I can quickly verify what
>>>>>> you are seeing.
>>>>>>
>>>>>> Can you tell us how you perceive the missing character? If you are
>>>>>> echoing it to a browser, then there will be no visual line break as
>>>>>> that is not a HTML character.
>>>>>>
>>>>>> But if you wrap the output in <pre>...</pre> tags, you should see it
>>>>> just
>>>>>> fine.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Richard Quadling
>>>>>> Twitter : EE : Zend : PHPDoc
>>>>>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>>>>>
>>>>> Richard,
>>>>>
>>>>> Thanks for the response. My initial email appears garbled somewhat.
>>>>> Between the single quotes should have been
>>>>>
>>>>> The WDSL is:
>>>>>
> http://clients.mindbodyonline.com/api/0_5/AppointmentService .asmx?WSDL
>>>>>
>>>>> I am using functions which return (among other things) an Appointment
>>>>> object. This Appointment object has a property named Notes. The Notes
>>>>> item
>>>>> in their software is displayed and edited in a html textarea field.
> If
>>> a
>>>>> newline is entered in the textarea field I need it to be present in
> the
>>>>> string in the SoapClient.
>>>>>
>>>>> To actually connect to with a SOAP client requires a username and
>>>>> password.
>>>>>
>>>>> Thanks,
>>>>> James
>>>>>
>>>>>
>>>>
>>>> What you need to determine is the EXACT content.
>>>>
>>>> Can you dump the $o_Service->__getLastResponse() to a file, and zip
> it?
>>>>
>>>> I have a framework that I use to test SOAP services. It isn't 100%
>>>> automatic, but it doesn't take too long.
>>>>
>>>> I've got it working as far as I can without the credentials.
>>>>
>>>> Hopefully you can add them in and the rest of the code should work.
>>>>
>>>> I assume it is just a SoapHeader you need to add.
>>>>
>>>> Running the consume.php script currently outputs ...
>>>>
>>>> Request Headers
>>>> ---------------
>>>> POST /api/0_5/AppointmentService.asmx HTTP/1.1
>>>> Host: clients.mindbodyonline.com
>>>> Connection: Keep-Alive
>>>> User-Agent: PHP
>>>> Content-Type: text/xml; charset=3Dutf-8
>>>> SOAPAction:
> "http://clients.mindbodyonline.com/api/0_5/GetScheduleItems"
>>>> Content-Length: 742
>>>>
>>>>
>>>> Request (XML)
>>>> -------------
>>>> <?xml version=3D"1.0" encoding=3D"utf-8"?>
>>>> <SOAP-ENV:Envelope
>>>> xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/"
>>>>
>>>> àxmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance "
>>>>
>>> xmlns:ns1=3D"http://clients.mindbodyonline.com/api/0_5">
>>>> à <SOAP-ENV:Body>
>>>> à à <ns1:GetScheduleItems>
>>>> à à à <ns1:Request>
>>>> à à à à <ns1:XMLDetail xsi:nil=3D"true" />
>>>> à à à à <ns1:PageSize xsi:nil=3D"true" />
>>>> à à à à <ns1:CurrentPageIndex xsi:nil=3D"true" />
>>>> à à à à <ns1:LocationIDs>
>>>> à à à à à <ns1:int>1</ns1:int>
>>>> à à à à à <ns1:int>2</ns1:int>
>>>> à à à à à <ns1:int>3</ns1:int>
>>>> à à à à </ns1:LocationIDs>
>>>> à à à à <ns1:StaffIDs>
>>>> à à à à à <ns1:long>100</ns1:long>
>>>> à à à à à <ns1:long>200</ns1:long>
>>>> à à à à à <ns1:long>300</ns1:long>
>>>> à à à à </ns1:StaffIDs>
>>>> à à à à <ns1:StartDate>2011-01-01T00:00:00Z</ns1:S=
tartDate>
>>>> à à à à <ns1:EndDate>2011-12-31T23:59:59Z</ns1:End=
Date>
>>>> à à à </ns1:Request>
>>>> à à </ns1:GetScheduleItems>
>>>> à </SOAP-ENV:Body>
>>>> </SOAP-ENV:Envelope>
>>>>
>>>> Response Headers
>>>> ----------------
>>>> HTTP/1.1 200 OK
>>>> Cache-Control: private, max-age=3D0
>>>> Content-Type: text/xml; charset=3Dutf-8
>>>> Server: Microsoft-IIS/7.5
>>>> X-AspNet-Version: 2.0.50727
>>>> X-Powered-By: ASP.NET
>>>> P3P: CAO DSP COR CUR TAIa OUR NOR UNI STA
>>>> Date: Fri, 19 Aug 2011 16:28:44 GMT
>>>> Content-Length: 614
>>>>
>>>> Response (XML)
>>>> --------------
>>>> <?xml version=3D"1.0" encoding=3D"utf-8"?>
>>>> <soap:Envelope xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/=
"
>>>> à à à à à à à àxmlns:xsi=3D"ht=
tp://www.w3.org/2001/XMLSchema-instance"
>>>> à à à à à à à àxmlns:xsd=3D"ht=
tp://www.w3.org/2001/XMLSchema">
>>>> à <soap:Body>
>>>> à à <GetScheduleItemsResponse
>>>> à à xmlns=3D"http://clients.mindbodyonline.com/api/0_5">
>>>> à à à <GetScheduleItemsResult>
>>>> à à à à <Status>InvalidCredentials</Status>
>>>> à à à à <Message>SourceCredentials must be provide=
d.</Message>
>>>> à à à à <XMLDetail>Full</XMLDetail>
>>>> à à à à <ResultCount>0</ResultCount>
>>>> à à à à <CurrentPageIndex>0</CurrentPageIndex>
>>>> à à à à <TotalPageCount>0</TotalPageCount>
>>>> à à à </GetScheduleItemsResult>
>>>> à à </GetScheduleItemsResponse>
>>>> à </soap:Body>
>>>> </soap:Envelope>
>>>>
>>>>
>>>> Response (Interpreted)
>>>> ----------------------
>>>> GetScheduleItemsResult Object
>>>> (
>>>> à à [StaffMembers] =3D>
>>>> à à [Status] =3D> InvalidCredentials
>>>> à à [Message] =3D> SourceCredentials must be provided.
>>>> à à [XMLDetail] =3D> Full
>>>> à à [ResultCount] =3D> 0
>>>> à à [CurrentPageIndex] =3D> 0
>>>> à à [TotalPageCount] =3D> 0
>>>> )
>>>
>>> I entered my login credentials in the consume.php script and changed it
>>> to
>>> dump __getLastResponse() to a text file. I do not want to include the
>>> entire file because it contains customer information, but I did look
>>> through the file with vi. The Notes /Notes XMl items do not contain
>>> embedded carriage returns or line feeds. I think this is a bug in the
>>> SOAP
>>> service and not in the PHP SoapClient.
>>>
>>> Thanks,
>>> James
>>>
>>>
>>
>> So, at this stage, proving the lack of the returns is all I can do.
>>
>> Are you responsible for the service?
>
> Unfortunately I am not responsible for the service. I can only bring it
> their attention and try to get them to fix it. Using your code, it is eas=
y
> to display exactly what the problem is.
>
> Thank you,
> James
>
>

Glad to have helped.



--=20
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message