cancel
Showing results for 
Search instead for 
Did you mean: 

PI SOAP access to third party Webservice,Return ERROR

Former Member
0 Kudos

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

   

Accepted Solutions (0)

Answers (3)

Answers (3)

markangelo_dihiansan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,Mark,

          the field pszMsg  type is STRING.

Regards,

Nathan

markangelo_dihiansan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Nathan,

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

Regards,

Sriram

Former Member
0 Kudos

Hi Nathan,

Please provide the error you are facing.

Regards,

Sriram

Former Member
0 Kudos

Hi Sriram,

    Here are some screenshots. Analysis on whether your analysis help.

  1 、The third party server log

   

2、ECC  Test  return

    

3、SOAP UI Test return

 

Thanks

Nathan

praveen_sutra
Active Contributor
0 Kudos

Hi Nathan,

Could you please check "Do Not Use SOAP envelope" in the channel.

hope this resolves the issue.

thank and regards,

Praveen T

Former Member
0 Kudos

Hi,Praveen T

    I tried your method, but not successful.

   

thank and regards

Nathan