Re: Webservice client sending null parameters to host
I am having same kind of problem. Client sends request successfully and response is OK in XML format but CXF cannot bind SOAP result to Java object so it returns null. Any answers are appreciated. Thanks - Original Message From: mrsv <[EMAIL PROTECTED]> To: cxf-user@incubator.apache.org Sent: Friday, February 8, 2008 10:09:35 PM Subject: Webservice client sending null parameters to host I have a cxf webservice and a client generated using wsdl2java. When the client tries to contact the service the parameters are being null. I am unable to figure out the reason.Tried including all the jars from cxf. Any answers are appreciated. Thanks -- View this message in context: http://www.nabble.com/Webservice-client-sending-null-parameters-to-host-tp15368060p15368060.html Sent from the cxf-user mailing list archive at Nabble.com. Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/
Simple Aegis mapping issue
I have an interface where I have defined: @XmlElement(minOccurs = "0", nillable = false) List getLocales(); @XmlElement(minOccurs = "1", nillable = false) List getNames(); I have written own data type mapper for Locale to map it into a single string (e.g. de_DE). Everything works as expected but the traffic looks like this: de_DE en_US Harri Hohteri While I would like to have it look like: de_DE en_US Harri Hohteri I assume there is something missing in my locale data type but for the latter, I have no clue how to fix this issue other than wrapping the string into a class named Name, which I would not like to do. Looking through the code it seems that the default name is got in ArrayType line 284 (CXF 2.0.3): element.setAttribute(new Attribute("name", componentType.getSchemaType().getLocalPart())); The componentType is a reference to the type mapping of the class wrapped by the array (or collection) unless the componentName is set when it would be the type mapping indicated by this name. I assume I would like to set the componentName for the names case or use a specific mapping only for this case. But how to do that? Harri -- View this message in context: http://www.nabble.com/Simple-Aegis-mapping-issue-tp15371152p15371152.html Sent from the cxf-user mailing list archive at Nabble.com.
A class/interface with the same name is already in use. Use a class customization to resolve this conflict.
When I try to use the following wsdl https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL both with wsdl2java and the simple client I got the following error. It is true that GeneralStockQuery is both an element and a complex type. Is there a way to solve this by providing more information to xjc or to wsdl2java ? Thanks Guillaume INFO: Loading the JAXB 2.1 simple binding for client. java.lang.RuntimeException: Error compiling schema from WSDL at {https://oxbranc h.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL}: A class/interface with the same name "com.optionsxpress.oxbranch.GeneralStockQuery" is already in use. Use a class customization to resolve this conflict...
Rest HTTP binding wrapped=false
I have the following service interface: @Get @HttpResource(location = "/student/{id}") StudentSession startSession(StartSession startSession); @XmlAccessorType(XmlAccessType.FIELD) @XmlType public class StartSession { protected long id; public long getId() { return id; } public void setId(long id) { this.id = id; } } When the StartSession gets unmarshaled the id is always 0, I debug JAXBEncoderDecoder and the XMLStreamReader source seams to be fine what can be the problem?? I attach the WSDL with the schema defs. -- Julio Arias Java Developer Roundbox Global : enterprise : technology : genius - Avenida 11 y Calle 7-9, Barrio Amón, San Jose, Costa Rica tel: (011) 506.258.3695 ext. 2001 | cell: (011) 506.849.5981 email: [EMAIL PROTECTED] | www.rbxglobal.com -
Re: Rest HTTP binding wrapped=false
Are you sure you have set your wrapped style to false? i.e., using sth like sf.getServiceFactory().setWrapped(false); or through spring configuration. Your service does look alright as far as I can see, this kind of problems normally happen when you messed up with wrapped style. Cheers, Jervis On Feb 10, 2008 12:43 AM, Julio Arias <[EMAIL PROTECTED]> wrote: > I have the following service interface: > > @Get > @HttpResource(location = "/student/{id}") > StudentSession startSession(StartSession startSession); > > @XmlAccessorType(XmlAccessType.FIELD) > @XmlType > public class StartSession { > protected long id; > > public long getId() { > return id; > } > > public void setId(long id) { > this.id = id; > } > } > > When the StartSession gets unmarshaled the id is always 0, I debug > JAXBEncoderDecoder and the XMLStreamReader source seams to be fine what can > be the problem?? I attach the WSDL with the schema defs. > > -- > Julio Arias > Java Developer > Roundbox Global : enterprise : technology : genius > - > Avenida 11 y Calle 7-9, Barrio Amón, San Jose, Costa Rica > tel: (011) 506.258.3695 ext. 2001 | cell: (011) 506.849.5981 > email: [EMAIL PROTECTED] | www.rbxglobal.com > - >