D
Daniel Lee
If I hit the web service hosted on Axis/Apache server from .NET by the
usual route; get WSDL, create proxy, call from a ASP.NET.
A method of the WS is supposed to return a XML with data, however, the
string the Web Method is returning is only the value of first element
<HRMErrorText> in the SOAP response.
However, if I hit the WS using a standalone tool that can send SOAP
request, it returns all the data correctly.
What is going on? Please help. I am getting frustrated~~
Thanks in advance!
======================================================
WSDL of WS:
======================================================
<?xml version="1.0" ?>
<definitions
targetNamespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
xmlns:tns="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="GetPartyAdditionalInfo">
<part name="usrName" type="xsd:string"/>
<part name="usrPass" type="xsd:string"/>
<part name="clientID1" type="xsd:string"/>
<part name="clientID2" type="xsd:string"/>
<part name="firstName" type="xsd:string"/>
<part name="lastName" type="xsd:string"/>
<part name="partyRoleCat" type="xsd:string"/>
<part name="returnPrefs" type="xsd:string"/>
</message>
<message name="GetPartyAdditionalInfoResponse">
<part name="TestResult" type="xsdage"/>
</message>
<message name="SearchEBOB">
<part name="usrName" type="xsd:string"/>
<part name="usrPass" type="xsd:string"/>
<part name="clientID1" type="xsd:string"/>
<part name="clientID2" type="xsd:string"/>
<part name="firstName" type="xsd:string"/>
<part name="lastName" type="xsd:string"/>
<part name="partyRoleCat" type="xsd:string"/>
<part name="returnPrefs" type="xsd:string"/>
</message>
<message name="SearchEBOBResponse">
<part name="TestResult" type="xsdage"/>
</message>
<portType name="TestMethodsType">
<operation name="GetPartyAdditionalInfo">
<input message="tns:GetPartyAdditionalInfo"/>
<output message="tns:GetPartyAdditionalInfoResponse"/>
</operation>
<operation name="SearchEBOB">
<input message="tns:SearchEBOB"/>
<output message="tns:SearchEBOBResponse"/>
</operation>
</portType>
<binding name="TestMethodsBinding" type="tns:TestMethodsType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GetPartyAdditionalInfo">
<soapperation style="rpc"
soapAction="urnegaRULES:SOAP:ToolkitWebServices:TestMethods#GetPartyAd
ditionalInfo"/>
<input>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="SearchEBOB">
<soapperation style="rpc"
soapAction="urnegaRULES:SOAP:ToolkitWebServices:TestMethods#SearchEBOB
"/>
<input>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="TestMethodsService">
<port name="TestMethodsPort" binding="tns:TestMethodsBinding">
<soap:address
location="http://z0001-app0379-s:8080/prweb/PRSOAPServlet"/>
</port>
</service>
</definitions>
==========================================================
THIS IS WHAT WS IS RETUNING WHEN USING XMLSPY TO SEND SOAP REQUET
==========================================================
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="urnegaRULES:SOAP:ToolkitWebServices:TestMethods">
<SOAP-ENV:Body>
<ns:SearchEBOBResponse
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<TestResult>
<HRMErrorText>
</HRMErrorText>
<eBOBSearchResults>
<rowdata>
<ClientID2>88</ClientID2>
<Gender>M</Gender>
<State>MO </State>
<FirstName>ALLEN</FirstName>
<CityName>O FALLON </CityName>
<ClientID1>1234567</ClientID1>
<Zip>633661944 </Zip>
<Role>1</Role>
<LastName>TEST</LastName>
<Birthdate>1977-05-21</Birthdate>
</rowdata>
</eBOBSearchResults>
<HRMReturnCode> </HRMReturnCode>
</TestResult>
</ns:SearchEBOBResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
usual route; get WSDL, create proxy, call from a ASP.NET.
A method of the WS is supposed to return a XML with data, however, the
string the Web Method is returning is only the value of first element
<HRMErrorText> in the SOAP response.
However, if I hit the WS using a standalone tool that can send SOAP
request, it returns all the data correctly.
What is going on? Please help. I am getting frustrated~~
Thanks in advance!
======================================================
WSDL of WS:
======================================================
<?xml version="1.0" ?>
<definitions
targetNamespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
xmlns:tns="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="GetPartyAdditionalInfo">
<part name="usrName" type="xsd:string"/>
<part name="usrPass" type="xsd:string"/>
<part name="clientID1" type="xsd:string"/>
<part name="clientID2" type="xsd:string"/>
<part name="firstName" type="xsd:string"/>
<part name="lastName" type="xsd:string"/>
<part name="partyRoleCat" type="xsd:string"/>
<part name="returnPrefs" type="xsd:string"/>
</message>
<message name="GetPartyAdditionalInfoResponse">
<part name="TestResult" type="xsdage"/>
</message>
<message name="SearchEBOB">
<part name="usrName" type="xsd:string"/>
<part name="usrPass" type="xsd:string"/>
<part name="clientID1" type="xsd:string"/>
<part name="clientID2" type="xsd:string"/>
<part name="firstName" type="xsd:string"/>
<part name="lastName" type="xsd:string"/>
<part name="partyRoleCat" type="xsd:string"/>
<part name="returnPrefs" type="xsd:string"/>
</message>
<message name="SearchEBOBResponse">
<part name="TestResult" type="xsdage"/>
</message>
<portType name="TestMethodsType">
<operation name="GetPartyAdditionalInfo">
<input message="tns:GetPartyAdditionalInfo"/>
<output message="tns:GetPartyAdditionalInfoResponse"/>
</operation>
<operation name="SearchEBOB">
<input message="tns:SearchEBOB"/>
<output message="tns:SearchEBOBResponse"/>
</operation>
</portType>
<binding name="TestMethodsBinding" type="tns:TestMethodsType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GetPartyAdditionalInfo">
<soapperation style="rpc"
soapAction="urnegaRULES:SOAP:ToolkitWebServices:TestMethods#GetPartyAd
ditionalInfo"/>
<input>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="SearchEBOB">
<soapperation style="rpc"
soapAction="urnegaRULES:SOAP:ToolkitWebServices:TestMethods#SearchEBOB
"/>
<input>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urnegaRULES:SOAP:ToolkitWebServices:TestMethods"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="TestMethodsService">
<port name="TestMethodsPort" binding="tns:TestMethodsBinding">
<soap:address
location="http://z0001-app0379-s:8080/prweb/PRSOAPServlet"/>
</port>
</service>
</definitions>
==========================================================
THIS IS WHAT WS IS RETUNING WHEN USING XMLSPY TO SEND SOAP REQUET
==========================================================
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="urnegaRULES:SOAP:ToolkitWebServices:TestMethods">
<SOAP-ENV:Body>
<ns:SearchEBOBResponse
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<TestResult>
<HRMErrorText>
</HRMErrorText>
<eBOBSearchResults>
<rowdata>
<ClientID2>88</ClientID2>
<Gender>M</Gender>
<State>MO </State>
<FirstName>ALLEN</FirstName>
<CityName>O FALLON </CityName>
<ClientID1>1234567</ClientID1>
<Zip>633661944 </Zip>
<Role>1</Role>
<LastName>TEST</LastName>
<Birthdate>1977-05-21</Birthdate>
</rowdata>
</eBOBSearchResults>
<HRMReturnCode> </HRMReturnCode>
</TestResult>
</ns:SearchEBOBResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!