Skip to Content
avatar image
Former Member

PI SOAP access to third party Webservice,Return ERROR

Hi Experts,

I have one soap synchronous scenario access to third party WEBSERVICE,Return error.While testing the wsdl in soap ui, I am getting response, messages showing successfully processed. I think it is pi to send  xmlns:ns1='http://tempuri.org/'  on both sides should not be a single quotation mark, but I don't know how to adjust  PI set. how do you see.

1、SOAP UI submitted to Webserver XML


[2014-05-26 08:47:24.662] --- Recv data from SocketId=272 Socket=10880
POST /MWGate/wmgw.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://tempuri.org/MongateCsSpSendSmsNew"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.0.0.253:8082
Content-Length: 520
<soapen:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
    <soapen:Header />
    <soapen:Body>
        <tem:MongateCsSpSendSmsNew>
            <tem:userId>DOA001</tem:userId>
            <tem:password>dennis</tem:password>
            <tem:pszMobis>1313773654</tem:pszMobis>
            <tem:pszMsg>1111</tem:pszMsg>
            <tem:iMobiCount>1</tem:iMobiCount>
            <tem:pszSubPort>*</tem:pszSubPort>
        </tem:MongateCsSpSendSmsNew>
    </soapen:Body>
</soapen:Envelope>
   

2、PI submitted to Webserver XML


[2014-05-26 08:36:08.725] --- Recv data from SocketId=271 Socket=10704
POST /MWGate/wmgw.asmx HTTP/1.0
Accept: */*
Host: 10.0.0.253:8082
User-Agent: SAP-Messaging-com.sap.aii.af.sdk.xi/1.0505
CallingType: SA
content-id: <soap-005056884B9B1EE3B98DB6E0A69FAB13@sap.com>
Content-Type: text/xml; charset=utf-8
Content-Length: 417
SOAPACTION: "http://tempuri.org/MongateCsSpSendSmsNew"
   
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
        <SOAP:Header />
        <SOAP:Body>
            <ns1:MongateCsSpSendSmsNew xmlns:ns1='http://tempuri.org/'>
                <ns1:userId>DOA001</ns1:userId>
                <ns1:password>dennis</ns1:password>
                <ns1:pszMobis>13637731567</ns1:pszMobis>
                <ns1:pszMsg>Constant</ns1:pszMsg>
                <ns1:iMobiCount>1</ns1:iMobiCount>
                <ns1:pszSubPort>*</ns1:pszSubPort>
            </ns1:MongateCsSpSendSmsNew>
        </SOAP:Body>
    </SOAP:Envelope>

3、SXI_MONITOR   Payloads content:

  <ns1:MongateCsSpSendSmsNew xmlns:ns1="http://tempuri.org/">

        <ns1:userId>DOA001</ns1:userId>

        <ns1:password>dennis</ns1:password>

        <ns1:pszMobis>13637731567</ns1:pszMobis>

        <ns1:pszMsg>Constant</ns1:pszMsg>

        <ns1:iMobiCount>1</ns1:iMobiCount>

        <ns1:pszSubPort>*</ns1:pszSubPort>

    </ns1:MongateCsSpSendSmsNew>

4、PI channel

   

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 09, 2014 at 03:04 AM

    Hi Nathan,

    Please provide the error you are facing.

    Regards,

    Sriram

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 09, 2014 at 06:05 AM

    Hi Nathan,

    Please copy paste the trace details here so that the error can be looked into

    Regards,

    Sriram

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 09, 2014 at 07:18 AM

    Hi Nathan,

    In the field pszMsg, for the SOAPUI test you are passing 1111 but in the XI test it is Constant. Maybe the webservice expects an integer but you are passing characters, hence the error.

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Nathan,

      It should not be affected by whether the quote is single or double. Can you try replicating the output as is in SOAP UI and pass it to the webservice? You can do this by an XLST or Java program.

      Regards,

      Mark