Skip to Content
author's profile photo Former Member
Former Member

Consuming SAP PI published Web Service

Hello,

I'm searching last two days a solution to create a connection from Web Dynpro Java 7.1 to SAP PI Web Service, but without luck.

I was able to import and create the Adaptive Web Service Model without any problems, but when I start the application I get two types of error messages, depending on definition of logical destinations in model.

1. When I use destinations from metadata

DEFAULT_WS_METADATA_DEST - http://<host>:<port>/inspection.wsil.

ERROR: com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: ProcessNewInstanceNotification_Out_Document

The published Web Service from SAP PI is available in Service Registry, it has also working endpoints - tested in WS navigator and Visual Composer, but it doesn't appears in the WSIL - is there a way how to publish this WSDL in the WSIL?

2. Second try was to not use logical destinations

ERROR: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<host>:<port>/dir/wsdl?p=1_d8f7d1c6f1983d2998715bb7ea906324_binding"

I have tried to create this WSDL destination in Destination Template Management and also in Destinations (NWA -> Configuration Management -> Destinations), but without success.

What's wrong?

Andrej Dobak

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 20, 2009 at 01:56 PM

    Hi Andrej,

    I also got the 2nd error while importing the webservice. Try to append &sap-user=<user>&sap-password=password> and import again.

    Regards,

    Shweta

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.