cancel
Showing results for 
Search instead for 
Did you mean: 

How to Check Web Service ???

Former Member
0 Kudos

Hi Gurur's,

I have created Web Service for a Function Module to update a table.How do i check this web service is working or not.

Are there any additional steps have to perform ?

Thanks and Regards

Vinayak Sapkal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

i have activated all the services from SICF, but when i click on Open Web Service navigator for selected binding , popup screen appears and shows Internet Explorer cannot display the webpage.

So i tried to test web service from SICF transaction so it shows error as below.

<soap-env:Envelope>

<soap-env:Header/>

<soap-env:Body>

<soap-env:Fault>

<faultcode>soap-env:Server</faultcode>

<faultstring xml:lang="en">

SRT: Wrong Content-Type and empty HTTP-Body received

</faultstring>

<detail>

<ns:SystemFault>

<Host>undefined</Host>

<Component>COREMSG</Component>

<ChainedException>

<Exception_Name>CX_SOAP_CORE</Exception_Name>

<Exception_Text>

SRT: Wrong Content-Type and empty HTTP-Body received

</Exception_Text>

</ChainedException>

</ns:SystemFault>

</detail>

</soap-env:Fault>

</soap-env:Body>

</soap-env:Envelope>

Thanks in Advance

Vinayak Sapkal

Former Member
0 Kudos

>Can not reach external application server on localhost:50000

How come your server is localhost???

Secondly

>SRT: Wrong Content-Type and empty HTTP-Body received

is correct error message because you haven't supplied any input xml (which you can't do from SICF), most probably you have specified wrong J2ee engine and incorrect port. Please consult any basis guy otherwise you will keep investing lot of time in this issue and finally you realise that solution was very simple.

Can you post url of service which opened from SICF test and also post binding url. Please do not mask host if it is localhost.

Regards,

Gourav

Answers (7)

Answers (7)

Former Member
0 Kudos

Thanks a lot guys,

finaly web service executed. Problem found in J2EE Host and Port name.

Thanks Gourav for your valuable inputs.

Thanks and Regards

Vinayak Sapkal

Former Member
0 Kudos

Thanks guys for your replies,

I am getting error when i click on Open Web Service navigator for selected binding.

Popup screen appears and shows error given below.

Error is 503 Service is not available

Error Detail : Can not reach external application server on localhost:50000

Thanks and Regards

Vinayak Sapkal

matt
Active Contributor
0 Kudos

Have you opened the necessary services via SICF?

Former Member
0 Kudos

Thanks Guys for reply,

I have define J2EE Host and Port in technical configuration. But, now showing Error on page at task bar when i click on Open Web Service navigator for selected binding.

Thanks and Regards

Vinayak Sapkal

Former Member
0 Kudos

Do one thing, just copy the wsdl url and check with SOAPUI it will save your time.

to copy wsdl url click on "Open wsdl for selected binding" (don't remember the exact text) and once new windows appear then copy the url and test with SOAP UI (free download).

Regards,

Gourav

Former Member
0 Kudos

Thanks guys for promt reply,

Now the error is trace by setting No Authentication in SOAMANAGER transaction.

But, while clicking on Open Web Service navigator for selected method got error

"J2EE host or port not specified; define them under "System Settings"

Where should i specify J2EE Host.

Thanks and Regards

Vinayak Sapkal

Former Member
0 Kudos

In SOAMANAGER transaction goto tab "Technical Configuration" then select "System Global Settings", now goto tab "Access information J2EE server" you can settings for "host name" and port.

You can edit and type correct host and J2EE port. For hint host will be similar to host of SOAMANAGER, port will be similar to 50000 or something else.

If you are still unable to do the setting please speak to your basis consultant for step by step help.

Regards,

Gourav

Former Member
0 Kudos

Thanks guru's,

At the time of Service configuration found err.

"SRT Framework exception: Configuration is invalid: Invalid cardinality "AuthenticationMethod"

Any step is require to perform for Service configuration.

Thanks in Advance.

Vinayak Sapkal

Former Member
0 Kudos

This message was moderated.

matt
Active Contributor
0 Kudos

Moderator note: Please spell words out in full "your" not "ur". Moved to the correct forum.

No third party tools are required to test. You can create a proxy to consume your webservice on any other SAP system - or, indeed, the same one, and test it that way.

You need to finish your configuration by going using transaction SOAMANAGER (assuming your running on a recent SAP version), and configure the service. You also use SOAMANAGER to get the portside and binding WSDL.

matt

Former Member
0 Kudos

>"SRT Framework exception: Configuration is invalid: Invalid cardinality "AuthenticationMethod"

Follow [this link |http://help.sap.com/saphelp_nw70/helpdata/en/47/3971ff39591a53e10000000a1553f7/content.htm]closely while doing configuration using SOAMANGER give authentication method as "Basic Authentication" and then save.

Regards,

Gourav

Former Member
0 Kudos

Hi Vinayak,

you can also try with FIDDLER (web debuggin proxy), that will allow you to check network traffic.

Regards,

Carlos.

Former Member
0 Kudos

HI.

As i understand, you are looking for tool to invoke ur WS. For this purpose use for example soapUI, XML SPY or SAP Buit-in soft.

http://www.dataxstream.com/2009/10/turn-any-sap-remote-enabled-function-module-into-a-web-service-u2...