Documente Academic
Documente Profesional
Documente Cultură
ProxytoSoapSynchronousScenerioinPI.|SCN
GettingStarted Newsletters
Hi,Guest
LogOn
JoinUs
Store
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
Activity
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Browse
Communications
Actions
anilkumar.bodapati3
ProxytoSoapSynchronousScenerioinPI.
PostedbyAnilkumarBodapatiinanilkumar.bodapati3onJul7,20134:54:54PM
Share
Tweet
Like 0
Introduction:
Thefollowingdocumentimpliesforalltheinboundinterfaces
whichhaveProxycallatsourceinSAPsystemandReceiverisaWeb
service
whichcangiveresponsetothemethod(soapaction)called.
InboundInterface:
AscenariothatmakesaRequest
fromSAPtoWebServicethroughPIwithcertainRequestinputfieldslike
TokenID
ClientTransactionID
InReturnacceptstheResponsefromWebServicewith
Responseoutputfieldslike
TransactionID
ClientTransactionID
RecordsReceived
RecordsPosted
RecordsFailed
UsingPROXYtoSOAPSynchronousScenario
Hereisthestepbystepwalk
throughhowtoachievethis.
Step1.CreationofDataTypes.Weneedtocreate2
Datatypes.
1forrequestmessagestructureandotherfor
Responsestructure.
Requeststructure:
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
1/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
ResponseStructure:
ThesestructuresarevisibleinSAP(ECC)at
TransactionSPROXYlikebelow
UsingABAPrequiredcodingneedto
bedoneforrequest&responseofmessages.
Now,CreateMessageTypes.Best
practiceistogivesamenamesprefixedwithDT_fordatatypesandMT_
for
MessageTypes.
Wehavetocreate2Messagetypes
andgiveDatatypesusedastheonesyoucreatedaboverespectively.
CreateMessageInterfacesinIR(ifPI7.0asinthiscase)
OurSendermessageinterface
nameisMI_GetTransactionkeyStatus
WhichisOUTBOUNDandSYNCHRONOUS
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
2/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
Here,theexactmethodwhichweare
goingtocallinWebServiceis
GetTransactionKeyStatus_InputMessage
Wewillreceivetheresponse
fromanothermethodcalledGetTransactionKeyStatus_OutputMessage
Whatwearegivingbeloware
Messagetypescreatedbyus.
OurReceiverMessageInterfacename
isMI_GetTransactionKeyStatus_Response
WhichisINBOUNDandSYNCHRONOUS
Youcanimportthesetwo
methodsfromExternalDefinitionwhichwillbeprovidedbyReceiversystem.
The
NameSpacewillbefromtheWebserviceorg.Here
Now,CreatingMessagemappings.
Weneed2messagemappingsonefor
makingrequestandonefortakingtheResponse.
MI_GetTransactionkeyStatusCheckheretherequestis
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
3/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
ClientTransactionID,Constant&first
nodetoNodemappingasisthischangesonvariousrequirements.
2ndmappingfor
capturingresponsefromSOAPandpassingittoSAP
MM_GetTransactionKeyStatus_Response
Thevalueswegethereasgiven
aboveinresponsestructure.
Wewillbehavingonlyone
Interfacemappingasrequest&response
ProvidetheMessageinterfacesyou
createdsourcesideasRequestandTargetsideasResponseandgivethe
Message
mappingwecreatedfirstasitisthe
request&clickonReadinterfacesbuttonyouwillgettheSource&
targetMessagesoneitherside.
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
4/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
NowyouwillseeResponsetab
poppingupandprovidetheMessagemappingprogramnameforitwhich
endwith
MM_***Response.ClickReadinterfaces.
Youwillseeadifferentsource
&targetforyourconfirmation.(actuallynotdifferentbutalreadydefined)
YouaredonewithIRpartofyour
SynchronousProxytoSOAPinterfacedesign.
CONFIGURATION:
Youneedtwocommunicationchannels
inordertomakearequestandcaptureresponseback.
SenderCommchanneladapterforProxyis
XI
SecuritycheckforIncoming
messagesselect[HTTP]
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
5/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
Receiver
CommChanneladapterforWebServiceisSOAP
Inthereceivercommchannel
atConnectionParametersprovidetheTargetURL[providedbythe
webservice]
Importantly,
ProvidetheSoapActionforthemethodyouarecalling.Youwillgetthisin
SoapUI.
OneimportantcatchhereforthosewhoarefacingissuesinaddingsoapEnveloptosourcemessageand
removing
thatsoapenvelopwhiletakingresponsefromWebservice.Youneedtoaddthe
belowmodulenameasitis.Thatwillsolvetheproblem.Elseweneedto
incorporateandxsltmappingtodothatworkforusaddingitinourInterface
mappingwhichmaybehectic.
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
6/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
Modulename:
CreateReceiver
Determination:YouwillbegivingSender
asSAPandinterfacenameastheoneyoucreatedforrequestmessage.
WhichisGetTransactionKeyStatus
InterfaceDetermination:Youwill
bepassingtheSenderdetailsasaboveinreceiverdetermination.Ifyou
are
usingPI7.0versionasinthiseg:Fisrtyouneedtogiveinterfacemapping
selectfromdropdown,thenInboundInterfacenamewhichis
GetTransactionKeyStatus
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
7/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
NowcreateReceiverAgreementas
below&providetheReceiverCommChannel.[
CC_SOAP_GetTransactionKeyStatus_Response
]
WiththisyourSynchronous
interfaceiscompleteandmakesureyouactivatedallobjectsandclear
SLDdataCachefromEnvironment
inthemenu.
TriggertheProxyfromSAPside
withrelaventdata.YouwillbereceivingtheresponsefromWebService.
WedonthavesenderAgreement
beingProxySender.
6814Views
Tags:pi,to,proxy,soap,without,synchronous,scenerio,sycnchronous,bpm.
AverageUserRating
MyRating:
(5ratings)
Share
Tweet
Like 0
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
8/9
10/3/2016
ProxytoSoapSynchronousScenerioinPI.|SCN
0Comments
Therearenocommentsonthispost
SiteIndex
Privacy
ContactUs
TermsofUse
SAPHelpPortal
LegalDisclosure
Copyright
http://scn.sap.com/people/anilkumar.bodapati3/blog/2013/07/07/proxytosoapsynchronousscenerioinpi
FollowSCN
9/9