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

Problems while testing own Web Service

Hi all,

Every time I want to access my web service I get the following error:

java.rmi.RemoteException: Service call exception; nested exception is:

java.lang.Exception: Unaccepted content type (text/html;charset=ISO-8859-1) !

java.lang.Exception: Unaccepted content type (text/html;charset=ISO-8859-1) !

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:618)

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:980)

at proxy.ConfigBindingStub.getSchueler(ConfigBindingStub.java:169)

at test.AgWsTester.main(AgWsTester.java:28)

The Web Service is a stateless Session Bean, to build the service I used the Web Service wizard. The only change I made is to choose ?Simple SOAP? for the ?Default Configuration Type?. I deployed the service and used the Visual Administrator to generate a proxy jar out of the SAP WSDL. This proxy is used by a stand alone client to test the service as it is described in the help contents (generating a web service client). The called operation needs one parameter (int) and should return a self defined VO.

Thanks for help

Christian

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2003 at 03:54 PM

    I forgot one important thing: testing via the Web Service homepage works fine 😊

    Christian

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 02, 2003 at 06:47 PM

    I' suggest you try to do this from the IDE Web Service Explorer. Once you open it, it should make a connection to your server and show all web services there. Right clicking on a webservice gives the option to generate proxies.

    Hope you got the version that allows you to do this....

    Regards,

    Benny

    Add comment
    10|10000 characters needed characters exceeded

    • My guess is that you have a problem with the generated proxies which where in pretty early stage at sneak preview release. Even more as you are using objects to transfer.

      However, I recommend to wait for the next version that should be available soon...

      Regards,

      Benny

  • Posted on Dec 10, 2003 at 11:19 AM

    Hi Christian,

    Benny is right. It is best to take the latest version of the J2EE Engine. But in order to help you identify the problem, could you please send us the Web Service so that we try it out.

    Regards, Vladimir

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Christian,

      My Address is vladimir.savchenko@sap.com.

      Actually the problem is that the IDE is asking for the types that you are actually going to transmit over the wire. The types like Set, HashSet, Vector and so on, we support natively by mapping them directly to an Object Array, and in case the Proxy is again SAP Java Proxy, we are generating also Set, HashSet and so on.

      So try adding the classes that you are intending to send (they must extend serializable, and must not implement more than one interface).

      Regards, Vladimir