Jump to content

SOAP Problems

- - - - -

  • Please log in to reply
No replies to this topic

#1
PGP_Protector

PGP_Protector

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 253 posts
I'm trying to figure out arrays , ect using SOAP but while doing that I've learned that the Same PHP & WSDL File don't always return the same Data :cursing::cursing::cursing:

On my Internet Host site, I can run my wsdl file & I get this as a return for a command
(http://www.gw4y.com/PADL/PADL.wsdl) (GetCardType())
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:HelloService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.gw4y.com" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
   <SOAP-ENV:Body>
      <ns1:GetCardTypeResponse>
         <CardReturn xsi:type="ns2:ACard">
            <sCardID xsi:type="xsd:string">PHP4139</sCardID>
            <sCardName xsi:type="xsd:string">A 4139 Card</sCardName>
            <sCardDescription xsi:type="xsd:string">Quad Die Card</sCardDescription>
         </CardReturn>
      </ns1:GetCardTypeResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

On an In house Server I Get This
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://192.168.1.17">
   <SOAP-ENV:Body>
      <ns1:GetCardTypeResponse>
         <CardReturn>
            <sCardID>PHP4139</sCardID>
            <sCardName>A 4139 Card</sCardName>
            <sCardDescription>Quad Die Card</sCardDescription>
         </CardReturn>
      </ns1:GetCardTypeResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

now when I use the inhouse server, my C# application is able to process the returned data, arrays, or single strings without issue, but from the Web server it fails (I always get a NULL returned)
I think it has to do with the extra xsi:type="ns2... being returned.

so Is their a way to turn this off?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users