Skip to Content
0
Jun 06, 2012 at 04:16 PM

Issue with the communication between .Net 4.0 client application to PI web service

254 Views

Dear Experts,

We are facing an issue where in a .Net client application is not able to call and post a message to the PI web service exposed via Sender SOAP adapter. We are able to successfully post the message to the PI web service using the SOAP UI Tool.

It is throwing the following error.

HTTP/1.1 500 Internal Server Error

server: SAP NetWeaver Application Server 7.11 / AS Java 7.11

content-type: text/xml; charset=utf-8

date: Wed, 06 Jun 2012 09:45:51 GMT

set-cookie: saplb_*=(pd97di00_D97_00)7916751; Version=1; Path=/

set-cookie: JSESSIONID=QSj3r-tTJKCtD9nky1gH8rqTmi_BNwHPzHgA_SAPBW1fzCu4O9a1ZlCs8LSemDIZ; Version=1; Path=/

set-cookie: JSESSIONMARKID=VCXcFgsQEU7CcdpP82paUb_iD915tra6CI_8_MeAA; Version=1; Path=/

Content-Length: 5061

<?xml version='1.0'?>

<!-- see the documentation -->

<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>

<SOAP:Body>

<SOAP:Fault>

<faultcode>SOAP:Server</faultcode>

<faultstring>Server Error</faultstring>

<detail>

<s:SystemError xmlns:s='http://sap.com/xi/WebService/xi2.0'>

<context>XIAdapter</context>

<code>ADAPTER.JAVA_EXCEPTION</code>

<text><![CDATA[

com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=HR_CH_ASEBIS_D;TS=;AN=SI_ReqHRMasterData_oa;ANS=null;”

Below is the screenshot of the sender SOAP channel.

The URL used to post the message is as below:

http://<host>:<port>/XISOAPAdapter/MessageServlet?senderParty=&;senderService=<senderBusinessSystem>&;receiverParty=&;receiverService=&;interface=<interfaceName>&;interfaceNamespace< interfaceNameSpace>

Client application is hosted on .Net 4.0 Framework. Below is the Binding and Endpoint configuration set on it.

<basicHttpBinding>

<binding name="TransportWithMessageCredential2" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">

<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>

<security mode="None">

<message clientCredentialType="UserName" />

</security>

</binding>

</basicHttpBinding>

<endpoint

address=”<URL from Sender Agreement>”

binding="basicHttpBinding" bindingConfiguration="TransportWithMessageCredential2" contract="ServiceReferenceSAP.<interfaceName>" name="TransportWithMessageCredential2">

</endpoint>

Any help is appreciated on this issue.

Regards

Sudhir Kumar

Attachments

posting issue9.png (16.1 kB)