cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to SOAP Scenario

sukumar_perumalsamy
Participant
0 Kudos

Dear All,

I am designing Proxcy to SOAP scenario.

Sender ECC proxy

Receiver SOAP

I have defined  source Data type message type and message mapping.

custom message type for proxy

MT_ABS_REQ

MT_ABS_RES

Service interface

SI_PROXY_IN - with above mentioned message types

SI_ABS_RES

with WSDL  - request and response.

MM_ABS_REQ  message mapping with -  MT_ABS_REQ & (AbsenceSOAPin)External soap definition

MM_ABS_RES  message mapping with  - AbsenceSOAPout external definition and MT_ABS_RES.

i have created the proxy using SI_PROXY_IN and class has beed created ZCO_SI_PROXY_IN.

please advice proxy created for SI_PROXY_IN is correct or not and how to write a proxy program to send and handle the response from SOAP call.

Regards

Sukumar

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi Sukumar,

Based on the description you gave, your configuration looks correct. Calling the proxy is really simple - you only need to create an object of the generated proxy class ZCO_SI_PROXY_IN and call one of its methods to send data to PI. Use this as a reference:

http://help.sap.com/saphelp_erp60_sp/helpdata/en/3e/a35c3cff8ca92be10000000a114084/frameset.htm

Also, bear in mind that in newer versions, the sender proxy implementing class method is no longer called EXECUTE_SYNCHRONOUS, but the name is identical to the name of your sender operation.

Regards,

Greg

Answers (3)

Answers (3)

sukumar_perumalsamy
Participant
0 Kudos

Thanks for suggestion ......i solved the issue

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Sukumar,

When you issue reaolved pls post solution here so that it wud be helpful to others.

Regards,

Raj

iaki_vila
Active Contributor
0 Kudos

Hi Sukumar,

A few cents:

Check how the abap-proxy sender/consumer side works:

http://scn.sap.com/docs/DOC-3813

http://scn.sap.com/docs/DOC-3797

Regards.

sukumar_perumalsamy
Participant
0 Kudos

Dear Thanks for all suggestion...i have done with ABAP proxy generation....and its delivering data to PI ....but SXMB_MONI shows success full message but ..mapping is truncated

like below

Actual testing in Message mapping

<?xml version="1.0"
encoding="UTF-8"?>
<ns0:ZHR_ABSENCE_TO_GOALS
xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
  
<IT_ABSENCE>
      <item>
        
<EMPL_NUMBER>123456</EMPL_NUMBER>
        
<DAY_FROM>20120606</DAY_FROM>
        
<DAY_TO>20120606</DAY_TO>
        
<ABSENCE_TYPE>general</ABSENCE_TYPE>
      </item>
  
</IT_ABSENCE>
</ns0:ZHR_ABSENCE_TO_GOALS>

Resul in SXMB_MONI payload.

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


- <rfc:ZHR_ABSENCE_TO_GOALS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">



- <IT_ABSENCE>



- <item>



<EMPL_NUMBER>00000010</EMPL_NUMBER>


<DAY_FROM>0120111G</DAY_FROM>


<DAY_TO />


<ABSENCE_TYPE />

</item>

</IT_ABSENCE>

</rfc:ZHR_ABSENCE_TO_GOALS>
Exactly 9 fields from Dayto tags are overlapping with DayFrom Tag.
i have changed WSDL file for all fields as string ...but still its overlapping with previous tag...
i have done proper mapping in ESR,  ID configuration scenario working fine ...
also the SOAP calls throwing undable to create a Socket error
Exception caught by
adapter framework: java.io.IOException: unable to create a socket
please advice
Regards
Sukumar
rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Sukumar,

adapter framework: java.io.IOException: unable to create a socket

This error comes when the connectivity fails between PI and Web service System, request your Basis and Network team to open necessary ports to connect Web service System.

Genarate proxy one more time, after doing structural change sin WSDL(Proxy structure) you have to genarate proxy one more time.

Regards,

Raj

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>adapter framework: java.io.IOException: unable to create a socket

The message is not flowing between PI and target system. The reason is that firewall port is not enabled between PI server and webservice target system. Talk to network team to create firewall rules to establish connection between target and PI. Also you might want to check with target system outside pi using soapui to check the connectivity.  

Former Member
0 Kudos

please advice proxy created for SI_PROXY_IN is correct or not and how to write a proxy program to send and handle the response from SOAP call.

first generate Proxy by using T.c SPROXY then write a report and in report , create Object and call the method ............

pls refer below link :

http://www.saptechnical.com/Tutorials/XI/Proxy/SS3.htm

http://scn.sap.com/thread/1574930