cancel
Showing results for 
Search instead for 
Did you mean: 

How WebDynpro consumes XI web service using adaptive web service model

Former Member
0 Kudos

Hi all,

there are some postings talking about this issue, but none of them got solution. Now I am asking this again hoping somebody has a solution or SAP fixed the issue if applicable.

So following is my situation:

Web service is defined in XI/PI box, XI can generate wsdl or wsil file, however somehow they can't publish the web service into the inspection.wsil (If you know how to do it please let me know).

The web service is consumed in webdynpro using ADAPTIVE web service model, I imported the WS using the XI generated wsdl file, no problem. My problem is I have noway to configure the logical destination. As said the XI guys somehow can not make the WS available in the inspection.wsil, thus I can not use the wsil to configure the logical destination. The second option is to use wsdl, however WD expects the wsdl link like http://server:port/myservice/Config1?wsdl which is not pointing to the WSDL file itself, this wsdl link is made available when the web service got published, I think. (I tried with normal java web service, once I deploy it to the sap AS, the wsdl link is automatically made available and the WS is automatically registered in the inspection.wsil). Since XI somehow can not "publish" the WS, the wsdl link is not available on the XI AS.

So now I am stuck with how to configure the logical destination, (do not tell me to leave the logical destination blank, so WD runtime uses the endport from the design time wsdl. This will not work for us, since the destination of WS must be configurable via logical destination).

Basically if WS can be "published" as deploying normal java WS to sap AS, everything is fine, the inspection.wsil will contain the WS and the wsdl link is also available for logical destination configuration. Now without "publishing" the web service in XI, is there any way to consume the WS from WebDynpro using adaptive web service model? Or you know how to "publish" ws in XI so that the ws is registered in the inspection.wsil?

I appreciate your information.

Jayson

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I think I've figured out how to get this to work. Here are the steps I've taken:

1) On each Portal server, create a new directory called u201CWSDLu201D at:

usr/sap/<server>/JC##/j2ee/cluster/server#/WSDL

2) Expose the new directory so that it is accessible view URL (i.e. http://myserver:port/wsdl). Follow the directions from this blog:

/people/sap.user72/blog/2005/11/17/xi-how-to-publish-wsdl-generated-from-xi-to-uddi

3) Copy the XI WSDL into this directory but (here's the key): change the extension from .wsdl to .xml

4) In the Visual Admin, create a Meta entry for your proxy and an executable. The Meta URL entry will be something like: http://localhost:50000/wsdl/mywsdl.xml The executable URL entry you can copy from the executable URL in the WSDL document.

I just ran it and it worked like a champ!

-Bob

former_member199223
Participant
0 Kudos

HI Jayson Xiao ,

I face the same issue as yours did you resolve it ?

If yes, could you please help me resolve the same

Regards,

Boopathi M

Former Member
0 Kudos

Hi All,

sorry for not following up this issue, since the project was finished months ago. If I am not wrong the issue was not really solved, instead, we developed a servlet that produces same content as http://server:port/myservice/Config1?wsdl, this is a workaround. Not sure if SAP is aware of this problem and working on a solution.

Regards

Jayson

Former Member
0 Kudos

Hi Jayson,

it should always be possible to specify the WSDL URL for the WS destination (apart from some very old NW SPs where this option was not supported) - there is to my knowledge no special format with the URL expected. If the URL can be resolved in a browser and returns a full WSDL incl. binding, I see no reason why this should not work for a WS destination.

Regards,

Patric.

Former Member
0 Kudos

this problem is with me for a long time. anyone has a solution to this?

Regards,

hui

Former Member
0 Kudos

Hi,

might be of use for you

/people/sap.user72/blog/2005/11/17/xi-how-to-publish-wsdl-generated-from-xi-to-uddi

Regards

Ayyapparaj

former_member751941
Active Contributor
0 Kudos

Hi Jayson,

Check this links.

<a href="http://help.sap.com/saphelp_nw70/helpdata/en/b5/ce88b82d7bfe4799ba7e175558d0ba/frameset.htm">Consuming a Web Service</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f07de95b-d81c-2a10-3daf-96172e846d00">Migration Guide: Web Service Model to Adaptive Web Service Model</a>

<a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq-Models-AdaptiveWebService&">Models - Adaptive Web Service</a>

<a href="http://help.sap.com/saphelp_nw70/helpdata/en/0d/2eac5a56d7e345853fe9c935954ff1/frameset.htm">Web Services</a>

Regards,

Mithu

Former Member
0 Kudos

Hi Mithu,

I know very well how adaptive web service works generally in webDynpro, my specific questions is consuming web service from SAP XI/PI where web service can not be published as you depoy normal web service to SAP AS.

Anybody has any other opinion?

THanks

Jayson

Former Member
0 Kudos

Dear Jayson Xiao

Did You found a solution for your problem?

if so , please publish it

Thanks