×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    1

    j2me-web service

    Hi all, I've got a problem to get a response from a method that return a complexType. I've deployed a web services on axis(wsdd file), here is the text:


    <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <service name="GestoreUtenti" provider="java:RPC" style="document" use="literal">
    <parameter name="className" value="myPackage.GestioneUtenti"/>
    <parameter name="allowedMethods" value="*"/>
    <parameter name="scope" value="Session"/>
    <beanMapping qname="myNS:Utente" xmlns:myNS="urn:GestoreUtenti" languageSpecificType="java:myPackage.Utente" />
    </service>
    </deployment>

    I've tried a JavaSE client and it's all right but with javaMe there is an error "java.rmi.MarshalException: Invalid Element in Response : item" where 'item' is the first tag name that contain variables of the returned object.

    Here is the response soap:

    <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <elencoUtentiReturn xmlns="http://localhost:8080/.../GestoreUtenti">
    - <item xmlns="">
    <valid>true</valid>
    <username>admin</username>
    <userId>1</userId>
    <admin>true</admin>
    </item>
    </elencoUtentiReturn>
    </soapenv:Body>
    </soapenv:Envelope>

    Thanks

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2

    Re: j2me-web service

    Hey I know it's a real long time ago, but have you fixed this problem? I'm hanging at the same end...

    Or is here somebody else who can give me a right SOAP-Response of a complexType? Or give me a hint how I have to manage it?

    It's really the same problem as phate, apart from that he uses document as style and I'm using wrapped...

    It would be really nice, if someone could help me!

    Sry for all the trouble.
    Dumpfi

Similar Threads

  1. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  2. Error Implementing J2ME Web Service in Nokia 80 Series
    By ductechteam in forum Mobile Java General
    Replies: 0
    Last Post: 2005-08-21, 14:29
  3. strange web service behavior on 6680?
    By asidana in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-06-26, 17:09
  4. Web Service / Soap
    By corradoME in forum Mobile Java General
    Replies: 0
    Last Post: 2004-11-25, 11:21
  5. Does Nokia Developer Suite v.21 Support J2ME Web Service?
    By peteradi in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-08-03, 13:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •