cancel
Showing results for 
Search instead for 
Did you mean: 

(SAP) SOAP service in integration gateway

Former Member
0 Kudos

Hi,

Using the Gateway Productivity Accelerator I have created an oData model with 4 entity sets, Implemented the service, created response mappings for the  4 datasources to the 4 entity sets and deployed the service to the smp integration gateway. In the integration gateway I have created destinations for each of the webservices using basic authentication. For the namespace of the service I chose the security config name that is also used for the application definition in smp 3.0. For easy of the Entity Sets I created a destination in the service.

Now, when I open the service document in my browser I am promted for a username and password. I enter my credentials and I am shown an xml document that lists the 4 entity sets that I have created. Now, when I type /FormbezetSet/ (which is one of the entity sets) behind the url in the browser it should show metadata for that entityset. However it shows me the following xml message

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code/>

<message xml:lang="en">Could not send Message.</message>

</error>

Looking in the error log of smp I see the following

...

Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://<full path to endpoint of webservice>

  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1530)

  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1490)

  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1309)

  at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)

  at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:622)

  at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)

  ... 341 common frames omitted

2014 08 29 12:09:45#+0100#ERROR#com.sap.gateway.core.ip.runtime.GatewayIPODataProcessor##anonymous#http-bio-8080-exec-3###readEntitySet() failed: service = SAPSSOSEC/MobileDashboard, entity set = FormbezetSet, content type = application/xml;charset=utf-8, message = org.apache.cxf.interceptor.Fault: Could not send Message. |

2014 08 29 12:09:45#+0100#ERROR#com.sap.gateway.core.ip.odata.ODataErrorCallbackImpl##anonymous#http-bio-8080-exec-3###handleError(): failed to serve request for URI http://<hostname>:<port>/gateway/odata/SAPSSOSEC/MobileDashboard;v=5/FormbezetSet/, message = Could not send Message. |

(Removed the hostname, port and destination path for security reasons)

As a sidenote, I have tried calling the webservice from the same server using soapUI and there I get a correct response.

Anyone have any idea?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I have found the answer in the comments of before mentioned blog


Integration of authenticated SOAP web services are (unfortunatelly) not possible at the moment. You might need to wait for the coming SMP3 SP04 ...

So it seems it is a limitation at the moment. I will close this thread as answered.

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

There is no need/way to create destination in the integration gateway for a given SOAP WS as you must have pointed WSDL file in request/response mapping.

While deployment, you must have given "namespace" as "sap", before opening service document, make sure you have one security profile (that has to created in admin cockpit) with the same name (case-sensitive).

I will suggest you to try again with one entityset first and let see if you make it through. For more information, you check this blog.
If you still see the error, i request you to share screenshots to understand your issue better.

Rgrds,

JK

Former Member
0 Kudos

Hi Jitendra,

As your suggestion I changed the namespace to sap and created the sap security configuration (still not sure if it has to be sap of can be anything, as long as it matches the security configuration name, documentation is vague about that). I have removed the destinations (how do I enter credentials for the authentication of the webservice now??)

I have looked at that blog before, I have tried the sample there (note that it is without authentication) and that service gives a response.

I have found an SAP note Integration Gateway for SAP Mobile Platform 3.0 - Known Constraints -- SAP Note 1931374 but when I try to open I get a message "Document not released". I would be very interested in reading those contraints.

I have also tried with only one entity set and get the same issue.

bjoernw
Employee
Employee
0 Kudos

Hi Erik,

the note has been updated for SP4 and is now available again.

Kind regards

Björn