Skip to Content
author's profile photo Former Member
Former Member

Call SAP Web Service via HTML Page

<html>

Dear All,

i try to call a SAP Web Service via a html-page with a form an method POST, action="http://server:8000/sap/bc/srt/rfc/sap/z_text/100/z_text/z_text" and to input-fields.

But i get this anwser:

- http://schemas.xmlsoap.org/soap/envelope/">

<soap-env:Header />

- <soap-env:Body>

- <soap-env:Fault>

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

<faultstring xml:lang="en">SRT: Unsupported xstream found: ("HTTP Code 200 : OK")</faultstring>

- <detail>

- http://www.sap.com/webas/710/soap/runtime/abap/fault/system/">

<Host>undefined</Host>

<Component>COREMSG</Component>

- <ChainedException>

<Exception_Name>CX_SOAP_CORE</Exception_Name>

<Exception_Text>SRT: Unsupported xstream found: ("HTTP Code 200 : OK")</Exception_Text>

</ChainedException>

</ns:SystemFault>

</detail>

</soap-env:Fault>

</soap-env:Body>

</soap-env:Envelope>

Have anyone an idea?

Thanks

Daniel

Edited by: Daniel Meyer on Sep 22, 2009 6:29 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 05:18 PM

    What did you send? is it in soap format or plain text?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 07:13 PM

    Thanks for answer,

    i send plain text, because i don`t know how to send soap format via html form...

    Daniel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      You need a SOAP client to call a web service. A web browser alone is not able to call web services....

      The interface of a SOAP client may be on a web page displayed in a web browser (like the SAP Web service Navigator which runs on a SAP J2EE stack).

      With a web browser you can only display the web service WSDL.

      Regards,

      Olivier

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2009 at 07:50 AM

    Hi Oliver,

    we don`t have an J2EE Stack. So we could not use the Service Navigator for testing.

    I reed it on some google sites, that you can call Web Services with a form i an html side. So have look at this idea, because of missing J2EE Stack.

    Regards

    Daniel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      When I said you can call webservice from browser it always means to use either by "form" or any other type of user interface.

      There are several examples designed in ASP.Net or Java script which tell you how to do http-post to webservice. Even in WSNavigator you can see http-post call.

      Regards,

      Gourav

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2009 at 08:55 AM

    Hi,

    If you are calling from a WebPage, you can use HTTP post instead of WebService.

    You will have adapterless communication which is better.

    Regards,

    Vikas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.