cancel
Showing results for 
Search instead for 
Did you mean: 

Integration Gateway - SMP 3.0 http response '401 unauthorized with SOAP web service

former_member187069
Participant
0 Kudos

Hi All,

I am trying to connect a SOAP web service with Integration Gateway in smp 3.0. by taking the below link as a sample. http://scn.sap.com/people/marvin.hoffmann/blog/2014/03/15/how-to-connect-soap-webservices-with-integ... tutorial.

But I am getting the below error :

org.apache.cxf.transport.http.httpexception http response '401 unauthorized' when communicating with ....

Any thoughts?

Thanks

Vishnupriya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Either you have entered wrong credentials or the backend which you are trying to connect is expecting some credentials. We also got same error while working with SMP and we have put "anonymous access" while testing and it worked.

Also, the security config in Admin cockpit should have same name as the "Name space" in gateway integration.

Thanks,

Shiv

former_member187069
Participant
0 Kudos

Hi, thanks for your reply.

I have put "anonymous access " and I dont get the 401 unauthorized error now. But when I try to do a GET, it gives me 00 ok but gives me an error like "no handler found for data"..Any idea?

thanks

Former Member
0 Kudos

Did you get the device registered in SMP? if yes, then if you are having issues to get data, then your backend service has not been configured correctly.

Is your backend configured correctly with Odata? Are you able to open the "Open source Document" from Integartion Gateway?

Thanks,

Shiv

former_member187069
Participant
0 Kudos

Yes. I got the device registered in SMP.

Since I am trying this with SOAP web service, there is no need for backend configuration in "Destination" in Gateway Management cockpit right?

I have created my OData models using GWPA and implemented a service and selected Data source and made the response mapping for GET. But I get a 200 ok response but says '"no handler for data" in the error message.

Do we need to configure the backend somewhere?(with the end point URL and the credentials?)

Thanks

Former Member
0 Kudos

The response mapping might be the issue. Attached is the screenshot which we have done. You can use as reference and see if it solves the issue.

former_member187069
Participant
0 Kudos

Not sure if my response mapping is the issue.The response gives me a Itab and in that I have item and inside it I have Kunnr, Land1 etc....

I have created a Customer Entity Set and have "item" as Complex type and id as primary key. and In "item" complex type, I have kunnr, name, description and saas ans simple types and I ahve done this mapping...I have tried many mappings..but nothing works..Is this mapping ok?

Answers (0)