Loading ...
Sorry, an error occurred while loading the content.

soap::lite client asmx .net service

Expand Messages
  • c002928
    I need to access an asp.net web service that requires username and password. A working soap message looks like this:
    Message 1 of 1 , Nov 26, 2002
    • 0 Attachment
      I need to access an asp.net web service that requires username and
      password. A working soap message looks like this:



      <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>

      <SubmitXml xmlns="http://webservices.galileo.com">

      <Profile>ApolloCopy_APD</Profile>

      <Request>

      <LocalDateTimeCT_6_0 xmlns="">

      <LocalDateTimeMods>

      <ReqCity>DEN</ReqCity>

      </LocalDateTimeMods>

      </LocalDateTimeCT_6_0>

      </Request>

      <Filter>

      <_ xmlns="" />

      </Filter>

      </SubmitXml>

      </soap:Body>

      </soap:Envelope>



      I have been unable to recreate this type soap message with
      soap::lite. I have put the u:pw in the endpoint URL and get a valid
      response but there are errors because my soap request doesn't look
      like the above.



      The method signature looks like this: xmlelement SubmitXml(string
      Profile, xmlelement Request, xmlelement Filter)



      Webservice is at http://testws.galileo.com/xmlselect/xmlselect.asmx



      Please help.



      One of or multinational customers is using soap::lite and we want to
      be able to get their client code to correctly work with our service.



      Thanks



      Scott Daniel



      Wsdl below



      <?xml version="1.0" encoding="utf-8"?>

      <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:s="http://www.w3.org/2001/XMLSchema"
      xmlns:s0="http://webservices.galileo.com"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
      xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
      targetNamespace="http://webservices.galileo.com"
      xmlns="http://schemas.xmlsoap.org/wsdl/">

      <types>

      <s:schema elementFormDefault="qualified"
      targetNamespace="http://webservices.galileo.com">

      <s:element name="SubmitXml">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Profile"
      type="s:string" />

      <s:element minOccurs="0" maxOccurs="1" name="Request">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element minOccurs="0" maxOccurs="1" name="Filter">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="SubmitXmlResponse">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1"
      name="SubmitXmlResult">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="MultiSubmitXml">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Profile"
      type="s:string" />

      <s:element minOccurs="0" maxOccurs="1" name="Requests">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="MultiSubmitXmlResponse">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Responses">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="BeginSession">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Profile"
      type="s:string" />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="BeginSessionResponse">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1"
      name="BeginSessionResult" type="s:string" />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="EndSession">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Token"
      type="s:string" />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="EndSessionResponse">

      <s:complexType />

      </s:element>

      <s:element name="SubmitXmlOnSession">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Token"
      type="s:string" />

      <s:element minOccurs="0" maxOccurs="1" name="Request">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element minOccurs="0" maxOccurs="1" name="Filter">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="SubmitXmlOnSessionResponse">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1"
      name="SubmitXmlOnSessionResult">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="SubmitTerminalTransaction">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Token"
      type="s:string" />

      <s:element minOccurs="0" maxOccurs="1" name="Request"
      type="s:string" />

      <s:element minOccurs="0" maxOccurs="1"
      name="IntermediateResponse" type="s:string" />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="SubmitTerminalTransactionResponse">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1"
      name="SubmitTerminalTransactionResult" type="s:string" />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="GetIdentityInfo">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1" name="Profile"
      type="s:string" />

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="GetIdentityInfoResponse">

      <s:complexType>

      <s:sequence>

      <s:element minOccurs="0" maxOccurs="1"
      name="GetIdentityInfoResult">

      <s:complexType>

      <s:sequence>

      <s:any />

      </s:sequence>

      </s:complexType>

      </s:element>

      </s:sequence>

      </s:complexType>

      </s:element>

      <s:element name="string" nillable="true" type="s:string" />

      </s:schema>

      </types>

      <message name="SubmitXmlSoapIn">

      <part name="parameters" element="s0:SubmitXml" />

      </message>

      <message name="SubmitXmlSoapOut">

      <part name="parameters" element="s0:SubmitXmlResponse" />

      </message>

      <message name="MultiSubmitXmlSoapIn">

      <part name="parameters" element="s0:MultiSubmitXml" />

      </message>

      <message name="MultiSubmitXmlSoapOut">

      <part name="parameters" element="s0:MultiSubmitXmlResponse" />

      </message>

      <message name="BeginSessionSoapIn">

      <part name="parameters" element="s0:BeginSession" />

      </message>

      <message name="BeginSessionSoapOut">

      <part name="parameters" element="s0:BeginSessionResponse" />

      </message>

      <message name="EndSessionSoapIn">

      <part name="parameters" element="s0:EndSession" />

      </message>

      <message name="EndSessionSoapOut">

      <part name="parameters" element="s0:EndSessionResponse" />

      </message>

      <message name="SubmitXmlOnSessionSoapIn">

      <part name="parameters" element="s0:SubmitXmlOnSession" />

      </message>

      <message name="SubmitXmlOnSessionSoapOut">

      <part name="parameters" element="s0:SubmitXmlOnSessionResponse" />

      </message>

      <message name="SubmitTerminalTransactionSoapIn">

      <part name="parameters" element="s0:SubmitTerminalTransaction" />

      </message>

      <message name="SubmitTerminalTransactionSoapOut">

      <part name="parameters"
      element="s0:SubmitTerminalTransactionResponse" />

      </message>

      <message name="GetIdentityInfoSoapIn">

      <part name="parameters" element="s0:GetIdentityInfo" />

      </message>

      <message name="GetIdentityInfoSoapOut">

      <part name="parameters" element="s0:GetIdentityInfoResponse" />

      </message>

      <message name="BeginSessionHttpGetIn">

      <part name="Profile" type="s:string" />

      </message>

      <message name="BeginSessionHttpGetOut">

      <part name="Body" element="s0:string" />

      </message>

      <message name="EndSessionHttpGetIn">

      <part name="Token" type="s:string" />

      </message>

      <message name="EndSessionHttpGetOut" />

      <message name="SubmitTerminalTransactionHttpGetIn">

      <part name="Token" type="s:string" />

      <part name="Request" type="s:string" />

      <part name="IntermediateResponse" type="s:string" />

      </message>

      <message name="SubmitTerminalTransactionHttpGetOut">

      <part name="Body" element="s0:string" />

      </message>

      <message name="GetIdentityInfoHttpGetIn">

      <part name="Profile" type="s:string" />

      </message>

      <message name="GetIdentityInfoHttpGetOut">

      <part name="Body" />

      </message>

      <message name="BeginSessionHttpPostIn">

      <part name="Profile" type="s:string" />

      </message>

      <message name="BeginSessionHttpPostOut">

      <part name="Body" element="s0:string" />

      </message>

      <message name="EndSessionHttpPostIn">

      <part name="Token" type="s:string" />

      </message>

      <message name="EndSessionHttpPostOut" />

      <message name="SubmitTerminalTransactionHttpPostIn">

      <part name="Token" type="s:string" />

      <part name="Request" type="s:string" />

      <part name="IntermediateResponse" type="s:string" />

      </message>

      <message name="SubmitTerminalTransactionHttpPostOut">

      <part name="Body" element="s0:string" />

      </message>

      <message name="GetIdentityInfoHttpPostIn">

      <part name="Profile" type="s:string" />

      </message>

      <message name="GetIdentityInfoHttpPostOut">

      <part name="Body" />

      </message>

      <portType name="XmlSelectWebServiceSoap">

      <operation name="SubmitXml">

      <documentation>Submits an XML request in a sessionless
      environment.</documentation>

      <input message="s0:SubmitXmlSoapIn" />

      <output message="s0:SubmitXmlSoapOut" />

      </operation>

      <operation name="MultiSubmitXml">

      <documentation>Allows users to send multiple sessionless
      Structured Data transactions within a single web service call. The
      following restrictions apply:<ul><li>It will not respond
      until all of the transactions respond. This means the caller must
      wait for the slowest transaction to return before getting results to
      any of the transactions.</li><li>It can only be used for
      unrelated transactions. All transactions may (or may not) be sent
      simultaneously, and there is no particular order expressed nor
      implied.</li><li>Terminal transactions are not
      supported.</li><li>Sessioned transactions are not
      supported.</li></ul></documentation>

      <input message="s0:MultiSubmitXmlSoapIn" />

      <output message="s0:MultiSubmitXmlSoapOut" />

      </operation>

      <operation name="BeginSession">

      <documentation>Begins an XML Select session.

      If this method returns a valid (non-empty) session token, the session
      must be released with EndSession.</documentation>

      <input message="s0:BeginSessionSoapIn" />

      <output message="s0:BeginSessionSoapOut" />

      </operation>

      <operation name="EndSession">

      <documentation>Ends an XML Select session.</documentation>

      <input message="s0:EndSessionSoapIn" />

      <output message="s0:EndSessionSoapOut" />

      </operation>

      <operation name="SubmitXmlOnSession">

      <documentation>Submits an XML Request on the specified
      session.</documentation>

      <input message="s0:SubmitXmlOnSessionSoapIn" />

      <output message="s0:SubmitXmlOnSessionSoapOut" />

      </operation>

      <operation name="SubmitTerminalTransaction">

      <documentation>Submits a terminal transaction on a session and
      returns the result.</documentation>

      <input message="s0:SubmitTerminalTransactionSoapIn" />

      <output message="s0:SubmitTerminalTransactionSoapOut" />

      </operation>

      <operation name="GetIdentityInfo">

      <documentation>Retrieves the Identity information for the
      specified profile</documentation>

      <input message="s0:GetIdentityInfoSoapIn" />

      <output message="s0:GetIdentityInfoSoapOut" />

      </operation>

      </portType>

      <portType name="XmlSelectWebServiceHttpGet">

      <operation name="BeginSession">

      <documentation>Begins an XML Select session.

      If this method returns a valid (non-empty) session token, the session
      must be released with EndSession.</documentation>

      <input message="s0:BeginSessionHttpGetIn" />

      <output message="s0:BeginSessionHttpGetOut" />

      </operation>

      <operation name="EndSession">

      <documentation>Ends an XML Select session.</documentation>

      <input message="s0:EndSessionHttpGetIn" />

      <output message="s0:EndSessionHttpGetOut" />

      </operation>

      <operation name="SubmitTerminalTransaction">

      <documentation>Submits a terminal transaction on a session and
      returns the result.</documentation>

      <input message="s0:SubmitTerminalTransactionHttpGetIn" />

      <output message="s0:SubmitTerminalTransactionHttpGetOut" />

      </operation>

      <operation name="GetIdentityInfo">

      <documentation>Retrieves the Identity information for the
      specified profile</documentation>

      <input message="s0:GetIdentityInfoHttpGetIn" />

      <output message="s0:GetIdentityInfoHttpGetOut" />

      </operation>

      </portType>

      <portType name="XmlSelectWebServiceHttpPost">

      <operation name="BeginSession">

      <documentation>Begins an XML Select session.

      If this method returns a valid (non-empty) session token, the session
      must be released with EndSession.</documentation>

      <input message="s0:BeginSessionHttpPostIn" />

      <output message="s0:BeginSessionHttpPostOut" />

      </operation>

      <operation name="EndSession">

      <documentation>Ends an XML Select session.</documentation>

      <input message="s0:EndSessionHttpPostIn" />

      <output message="s0:EndSessionHttpPostOut" />

      </operation>

      <operation name="SubmitTerminalTransaction">

      <documentation>Submits a terminal transaction on a session and
      returns the result.</documentation>

      <input message="s0:SubmitTerminalTransactionHttpPostIn" />

      <output message="s0:SubmitTerminalTransactionHttpPostOut" />

      </operation>

      <operation name="GetIdentityInfo">

      <documentation>Retrieves the Identity information for the
      specified profile</documentation>

      <input message="s0:GetIdentityInfoHttpPostIn" />

      <output message="s0:GetIdentityInfoHttpPostOut" />

      </operation>

      </portType>

      <binding name="XmlSelectWebServiceSoap"
      type="s0:XmlSelectWebServiceSoap">

      <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
      style="document" />

      <operation name="SubmitXml">

      <soap:operation
      soapAction="http://webservices.galileo.com/SubmitXml"
      style="document" />

      <input>

      <soap:body use="literal" />

      </input>

      <output>

      <soap:body use="literal" />

      </output>

      </operation>

      <operation name="MultiSubmitXml">

      <soap:operation
      soapAction="http://webservices.galileo.com/MultiSubmitXml"
      style="document" />

      <input>

      <soap:body use="literal" />

      </input>

      <output>

      <soap:body use="literal" />

      </output>

      </operation>

      <operation name="BeginSession">

      <soap:operation
      soapAction="http://webservices.galileo.com/BeginSession"
      style="document" />

      <input>

      <soap:body use="literal" />

      </input>

      <output>

      <soap:body use="literal" />

      </output>

      </operation>

      <operation name="EndSession">

      <soap:operation
      soapAction="http://webservices.galileo.com/EndSession"
      style="document" />

      <input>

      <soap:body use="literal" />

      </input>

      <output>

      <soap:body use="literal" />

      </output>

      </operation>

      <operation name="SubmitXmlOnSession">

      <soap:operation
      soapAction="http://webservices.galileo.com/SubmitXmlOnSession"
      style="document" />

      <input>

      <soap:body use="literal" />

      </input>

      <output>

      <soap:body use="literal" />

      </output>

      </operation>

      <operation name="SubmitTerminalTransaction">

      <soap:operation
      soapAction="http://webservices.galileo.com/SubmitTerminalTransaction"
      style="document" />

      <input>

      <soap:body use="literal" />

      </input>

      <output>

      <soap:body use="literal" />

      </output>

      </operation>

      <operation name="GetIdentityInfo">

      <soap:operation
      soapAction="http://webservices.galileo.com/GetIdentityInfo"
      style="document" />

      <input>

      <soap:body use="literal" />

      </input>

      <output>

      <soap:body use="literal" />

      </output>

      </operation>

      </binding>

      <binding name="XmlSelectWebServiceHttpGet"
      type="s0:XmlSelectWebServiceHttpGet">

      <http:binding verb="GET" />

      <operation name="BeginSession">

      <http:operation location="/BeginSession" />

      <input>

      <http:urlEncoded />

      </input>

      <output>

      <mime:mimeXml part="Body" />

      </output>

      </operation>

      <operation name="EndSession">

      <http:operation location="/EndSession" />

      <input>

      <http:urlEncoded />

      </input>

      <output />

      </operation>

      <operation name="SubmitTerminalTransaction">

      <http:operation location="/SubmitTerminalTransaction" />

      <input>

      <http:urlEncoded />

      </input>

      <output>

      <mime:mimeXml part="Body" />

      </output>

      </operation>

      <operation name="GetIdentityInfo">

      <http:operation location="/GetIdentityInfo" />

      <input>

      <http:urlEncoded />

      </input>

      <output>

      <mime:content part="Body" type="text/xml" />

      </output>

      </operation>

      </binding>

      <binding name="XmlSelectWebServiceHttpPost"
      type="s0:XmlSelectWebServiceHttpPost">

      <http:binding verb="POST" />

      <operation name="BeginSession">

      <http:operation location="/BeginSession" />

      <input>

      <mime:content type="application/x-www-form-urlencoded" />

      </input>

      <output>

      <mime:mimeXml part="Body" />

      </output>

      </operation>

      <operation name="EndSession">

      <http:operation location="/EndSession" />

      <input>

      <mime:content type="application/x-www-form-urlencoded" />

      </input>

      <output />

      </operation>

      <operation name="SubmitTerminalTransaction">

      <http:operation location="/SubmitTerminalTransaction" />

      <input>

      <mime:content type="application/x-www-form-urlencoded" />

      </input>

      <output>

      <mime:mimeXml part="Body" />

      </output>

      </operation>

      <operation name="GetIdentityInfo">

      <http:operation location="/GetIdentityInfo" />

      <input>

      <mime:content type="application/x-www-form-urlencoded" />

      </input>

      <output>

      <mime:content part="Body" type="text/xml" />

      </output>

      </operation>

      </binding>

      <service name="XmlSelectWebService">

      <documentation>Allows access to XML Select services over
      SOAP.</documentation>

      <port name="XmlSelectWebServiceSoap"
      binding="s0:XmlSelectWebServiceSoap">

      <soap:address
      location="http://testws.galileo.com/xmlselect/xmlselect.asmx" />

      </port>

      <port name="XmlSelectWebServiceHttpGet"
      binding="s0:XmlSelectWebServiceHttpGet">

      <http:address
      location="http://testws.galileo.com/xmlselect/xmlselect.asmx" />

      </port>

      <port name="XmlSelectWebServiceHttpPost"
      binding="s0:XmlSelectWebServiceHttpPost">

      <http:address
      location="http://testws.galileo.com/xmlselect/xmlselect.asmx" />

      </port>

      </service>

      </definitions>
    Your message has been successfully submitted and would be delivered to recipients shortly.