Re: WCF SOAP WSDL... Parsing Schema: element error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4 January 2011 10:30, Richard Quadling <rquadling@gmail.com> wrote:
> On 2 January 2011 23:00, etangle <shahid.mehmud@gmail.com> wrote:
>>
>> There is a trick for that:
>>
>> In your windows hosts file, add after localhost
>> gadm01wsrv04 Â Â84.235.63.38
>>
>> I appreciate your help...
>>
>>
>>
>> etangle wrote:
>>>
>>> Hello Everyone,
>>> I am trying to access a WCF WSDL service to send message, but getting
>>> following error:
>>>
>>> SOAP-ERROR: Parsing Schema: element
>>> 'http://schemas.microsoft.com/2003/10/Serialization/Arrays:ArrayOfstring'
>>> already defined
>>>
>>> I am using native SOAP extension of php, and also tried with nuSOAP, but
>>> getting same error...
>>> My script looks as; using deliverMTMessage method with parameters...
>>>
>>> <?php
>>> try {
>>> Â Â$client = new
>>> SoapClient("http://84.230.69.67/MTRECEIVER/TSLMTRECEIVER.svc?wsdl";);
>>> Â Â$response=$client->deliverMTMessage(array(
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'applicationId' => '5789',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'username'=>'nickname',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'password' => 'WknqPI==',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'price' => '',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'moMessageId' => '',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'mTMessageId' => '',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'telcoId' => '8',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'receiverMsisdn' => '97650000000',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'senderMsisdn' => '97650000000',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'messageType' => 'SMS',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'mtType' => '2',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'messageText' => 'test message from shahid',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'serviceType' => '1',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'additionalInformation' => '',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'shortCode' => '836282',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'billServiceID' => '',
>>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 'priority' => '1'));
>>> Â Âprint_r($response);
>>> Â Âecho htmlentities($response);
>>>
>>> Â Â } catch (SoapFault $e) {
>>> Â Âprint_r($e->getMessage());
>>> Â}
>>> ?>
>>>
>>> I shall appreciate any help...
>
> And for http://gadm01wsrv01/MTRECEIVER/TSLMTRECEIVER.svc?xsd=xsd0 ?
>
> And for server 2 ?
>
> Server2 doesn't seem to be on the same address as I've amended my
> hosts file to ...
>
> gadm01wsrv04 Â Â84.235.63.38 # Supplied by etangle
> gadm01wsrv01 Â Â84.235.63.38 # Guessed by me and passed
> gadm01wsrv02 Â Â84.235.63.38 # Guessed by me and failed
> gadm01wsrv03 Â Â84.235.63.38 # Guessed by me and not even got that far
> as server 2 fails.
>
> If you are going to make the service public, then can you use public
> addresses. If we need a special setup it is going to make things
> harder to deal with.
>
> Richard.
>
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>

I'm not getting consistent results. Are the IP <-> Names consistent?

The SoapClient class cannot completely parse the WSDL file. So I can't
do anything.

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



[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux