Você está na página 1de 8

4/18/2016

CreatingaServiceConsumerProxy|SCN

GettingStarted Newsletters

Hi,Karthick

LogOut

1points

Store

SearchtheCommunity

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

Communications

Actions

Create

ProcessIntegration(PI)&SOAMiddleware

CreatingaServiceConsumerProxy
PostedbyJuanManuelinProcessIntegration(PI)&SOAMiddlewareonOct24,201210:37:11PM

Inthispart,wellseetheprocesstocreateProxyconsumerservice.

Previously,wehaveseen

howtocreateanABAPbasedwebservice

First,wehavetostartthewizardtocreateanewserviceusingtrx.SE80.Rightclickand
thenCreate>EnterpriseService.

Thistime,inObjectTypefieldwechooseServiceConsumer:

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

1/8

4/18/2016

CreatingaServiceConsumerProxy|SCN

FortheServiceConsumersource,wecanchooseamongstEnterpriseServiceRepository,
URLorthepathofWSDLalocalfile,UDDI,andtheServiceRegistry.
PleaseselectURL/HTTPDestination.

FillwiththeURLoftheWSDLpreviouslycreated.

Before continue, we enter to SOAMANAGER transaction code and choose: Application


andScenarioCommunication>SingleServiceAdministration.

SearchtheServicepreviouslycreatedandchooseApplySelection.Nowwecanseethe
ServiceDefinitiondetails.
http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

2/8

4/18/2016

CreatingaServiceConsumerProxy|SCN

YouhavetoclickontheOpenWebServicenavigatorforSelectedBindinglink.The
combobuttonshowstheEndpointdefinedfortheService.ItllpopuptheWSDLwherewe
havetotaketheURLtocreatetheproxy.

UsetheURLinthewizard:

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

3/8

4/18/2016

Fullfilthenecesarydatainthewizard.

CreatingaServiceConsumerProxy|SCN

Infinalstep,youcanclickonCompletetostartthecreationoftheProxyobject.

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

4/8

4/18/2016

CreatingaServiceConsumerProxy|SCN

Enteryourlogindata:

Theproxyclassisshown.ClickonSaveandActivate.

GobacktotheSOAMANAGERtrx.toconfiguratealogicalportforourserviceprovider.
LogicalportsaremadetoconfiguratethetimefeaturesofaWSexecution.Wecancreate
alogicalportfromLPCONFIG(obsolete)orSOAMANAGERasweareshowingnext.
A consumer proxy never stores details about a server URL (which is system specific).
ThesedetailshavetobeconfiguredthroughlogicalportsandEndPoints.
Forexample:whenwetransportaproxyclassfromaDevelopmentsystemtoQAsystem.
The proxy class doesnt contain any information about which server the WS has to be
called,thisishandledbyalogicalport.
Go back to the SOAMANAGER trx. This time, when you search in Web Service
AdministrationchooseConsumerProxy.DontforgettoclickonApplySelectionaafter
highlightingtheproxy.

IntheConfigurationtab,selectCreateLogicalPort.

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

5/8

4/18/2016

CreatingaServiceConsumerProxy|SCN

Inthepopupshown,youhavetofillseveralparameters.First,giveanameforthelogical
portandsetitasthedefaultlogicalport.
NextwehavetoselectConfig.TypebasedonWSDL.

Theapplicationreadsallthesecurityparametersneededtocallthisservicedirectlyfrom
WSDLdefinition.
Finally,wehavetofilltheWSDLURLforthecalledWebServices.Also,youhavetogive
thesystemusernameandpasswordtoaccesstheWSDL

Ifthecreationwassuccess,thesystemwilltakeusbacktotheConfig.Screen,wherewe
cancontinuewiththelogicalportconfiguration.Oncemore,introducetheusernameand
password(theyaregoingtobeusedasacredentialstocallthisserviceandtosavethe
logicalport).

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

6/8

4/18/2016

CreatingaServiceConsumerProxy|SCN

Thenextandfinalsectionis:TestingaServiceConsumerProxy:

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/25/testingaserviceconsumerproxy

23020Views

AverageUserRating

MyRating:

(4ratings)

4Comments
PedroRiosOct1,20147:31AM

GoodJobJuanManuel,thisisasummaryofwhatIhavebeenlookingforinsomeweeks .
BythewayitcanbecreatedalogicalportalsobyusingaHTTPdestination,incaseoftheWeb
servicetoconsumeisexternal,forthisIknowwehavetocreateadestinationinSM59typeG
(External).SoIhaveaquestion,inoursystemtherearealotofconnectionstypeG,butIseethatall
ofthemhas"AutomaticWebServiceConfiguration"astheirdescription.Howthisconnectionswere
generated?Itookalookinsomeoftheproxies,butIcan'tseewherethisconnectionsareused.

Goodjob,
Pedro.
Like(0)

srikanthkakaniOct1,20148:52AM

ThanksJuanforSharing..Intrestingstuff..
Like(0)

MuhammadTahaSiddiquiJan18,201611:26AM(inresponsetosrikanthkakani)

Dear JuanManuel,

Didyouhaveanyidea,HowtoConsume.Net(NonSap)Webservicethroughthismethod?

I'mfollowingtheBelowSteps,
Se80>EditObject>ClientProxy>Create>URL/HTTPCheckBox>URL:http://ip
address:Port#/Service1.asmx?WSDL>PackageName+Prefix+Request#>Complete.
WhileClickoncompletebuttonitgivesanExceptionwhichismentionedbelow,

Notimplemented
ExceptionofclassCX_SIDL_INTERNAL_ERROR

Pleasegivemepropersolution,Howtoresolvethisexception?

Regards,
MuhammadTaha
Like(0)

NitinDeshpandeJan18,201611:47AM(inresponsetoMuhammadTahaSiddiqui)

HiMuhammad,

Haveyouimplementedtheproxy?Thiserroralsooccurswhenyousendthe

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

7/8

4/18/2016

CreatingaServiceConsumerProxy|SCN
wrongstructureddatd,throughSPROXYtesting.

Regards,
Nitin
Like(0)

SiteIndex
Privacy

ContactUs
TermsofUse

SAPHelpPortal
LegalDisclosure

Copyright

http://scn.sap.com/community/piandsoamiddleware/blog/2012/10/24/creatingaserviceconsumerproxy

FollowSCN

8/8

Você também pode gostar