cancel
Showing results for 
Search instead for 
Did you mean: 

Calling PI Web Service Error

Former Member
0 Kudos

Hi experts,

I have exposed a web service from a generated "Sender Agreement".

I also imported the WSDL to the Developer Studio and generated a Web Service Client from it.

When i am tying to run a simple program which calls the web service,

I am getting authentication error.

How should i provide the user authentication?

Regards Max.

Accepted Solutions (0)

Answers (3)

Answers (3)

justin_santhanam
Active Contributor
0 Kudos

Maxim,

I believe the below Wiki will be of more help

http://wiki.sdn.sap.com/wiki/display/ESpackages/ConsumingaExternalServicefromESWorkplaceinCompositeApplicationFrameworkUsingCE+7.1.1

raj.

Former Member
0 Kudos

Tnx a lot.

I believe all the given information will solve my problem.

I will Try to provide the use and password in a few days,

And post about my success.

Former Member
0 Kudos

Hi,

Provide the user id / password for the PI server.

Regards,

Neetesh

Hi.

I know that I must provide the user name and password.

My question is how to do it.

Regard, Max.

Former Member
0 Kudos

I believe the below Wiki will be of more help

http://wiki.sdn.sap.com/wiki/display/ESpackages/ConsumingaExternalServicefromESWorkplaceinCompositeApplicationFrameworkUsingCE+7.1.1

raj.

Hi raj.

I followed the wiki and in the step of finishing the import of the WSDL,

I am getting an error, saying: "server returned error code 500", I checked and figured

that error 500 means "Internal server error".

Do you have any ideas what could be the reason?

Former Member
0 Kudos

Hi,

My question is how to do it.

You can provide the user name / password in the URL. It also depends on what tool you are using ... if you are using SOAPUI (or a similar tool), then there are options for providing authentication details.

Hope this helps.

Regards,

Neetesh

Former Member
0 Kudos

Hi Max,

I think you are misguided here.

User authentication has nothing to do with HTTP 500 unless someone implemented the servlet container wrong.

If you were getting HTTP 500, your call passed the authentication phase and reached something inside.

You should look into what else the HTTP response message says in its content.

If your call reached the heart of the adapter engine, you should be able to find your message in the adapter engine's message monitor.

If not, the only place you can look is the response message or in the default trace.

Best regards, Yza

Former Member
0 Kudos

If you don't already have a Service account , create a communication ID on your PI system that can be used by any application,

Use this for your invocations,

It's always a good idea to test the webservice on a 3rd party testing tool like:

Altova XML spy http://www.altova.com/

SOAPUI, this is free http://www.soapui.org/

Former Member
0 Kudos

Hi,

Provide the user id / password for the PI server.

Regards,

Neetesh