NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Mobile WebService Client - Cyclical parameter references

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
spacewatcher



Joined: 11 Oct 2009
Posts: 15

PostPosted: Thu Dec 31, 2009 6:56 pm    Post subject: Mobile WebService Client - Cyclical parameter references Reply with quote

Hello,

I want to generate a web service client on my mobile app but the wsdl file is not accepted, this is the error:

Parameter type contains cyclical references - cannot generate stub for that type

I have created a web client, and the wsdl was accepted, but i think it is because
web uses Jax-ws and mobile uses jax-rpc.
Some one knows the cause of this error ? If i comment some of the methods, the error dissapears. The parameters have a "complex
type" but i think it not contains cyclical references.
Some one more with this problem?

The methods with problems:

Code:

@WebMethod(operationName = "getTransport") //CYCLIC REFERENCES???
    public IGCTransport getTransport(@WebParam(name = "source")IGCAddress source,
            @WebParam(name = "dest")IGCAddress dest,
            @WebParam(name = "maxDistance")float maxDistance,
            @WebParam(name = "bound")int bound)
    {
        return transport.getTransport(source, dest, maxDistance, bound);
    }
    @WebMethod(operationName = "getTranshipment") // CYCLIC REFERENCES??
    public IGCTransport getTranshipment(@WebParam(name = "source")IGCAddress source,
            @WebParam(name = "dest")IGCAddress dest,
            @WebParam(name = "maxDistance")float maxDistance,
            @WebParam(name = "bound")int bound)
    {
        return transhipment.getTranshipment(source, dest, maxDistance, bound);
    }


The parameter classes:

Code:

public class IGCTransport
{
    public IGCAddress up[];
    public IGCAddress down[];
    public String line[];
    public double cost[];
}
public class IGCAddress
{
    public String fullname;
    public String id;
    public String nbhoodL;
    public String nbhoodR;
    public int height;
    public IGCCoordinate coordinate;
    public String text = null;
}



Thanks! and i'm sorry for my english
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo