Hello,

I use webservices to integrate into SAP. Integration works, but I cannot read the response. How can I evaluate webservice the response, I can see when using the test-function?

Thanks for Your answers Richard Schmid

asked 04.12.2015 at 10:24

Richard%20Schmid's gravatar image

Richard Schmid
(suspended)
accept rate: 25%


With ivy 6.0.0 you can inspect the ws reponse with the runtime log. By default webservice calls log the reponse with detailed information (including soap xml).

The log in my internal demo environment looks as follows.

*** SOAP Request ***
POST /axis2/services/IvyEchoService.IvyEchoServiceHttpEndpoint/echoString HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
SOAPAction: ""
User-Agent: Axis2
Host: zugtstweb:8080
Content-Length: 18

message=hi service
*** SOAP Response ***
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 07 Dec 2015 13:44:03 GMT
79
<ns:echoStringResponse xmlns:ns="urn:schema.ws.test.ivyteam.ch"><ns:return>hi service</ns:return></ns:echoStringResponse>
0

alt text

As the Axis2 webservice client generator was broken with 6.0.0 you may have to generate the stubs with 5.1.x and then import to 6.0.0.

link

answered 07.12.2015 at 14:51

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

Hello Richard,

in our cases it is depending on the function module / webservice you are using. if the function module in SAP has no export defined the webservice will not response anything.

Is it a standard FM of SAP?

if there is any response from SAP you can get it with wsresponse inside the Webservice step of ivy.

hope this helps a little bit.

best regards Roland

link

answered 04.12.2015 at 11:35

roland's gravatar image

roland
(suspended)
accept rate: 41%

Hello Roland,

thanks for your answer. Now I know, that I can't use the standard - functions of the Axon WS-Element

I use a customer-made webservice. In the Axon WS-Element no wsResponse is available.

If possible, I should get the response shown, when using the Test-Button.

best regards Richard

(04.12.2015 at 13:40) Richard Schmid Richard%20Schmid's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×48

Asked: 04.12.2015 at 10:24

Seen: 3,069 times

Last updated: 07.12.2015 at 14:51