dcsimg
Apache SOAP an lowercase/uppercase names
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   stefan_gimeson
Posted On:   Friday, March 5, 2004 08:33 AM

I have the following problem - I need to create an envelope like this: (stub) ... I have the following bean-methods: ... public java.lang.String getClientID() { return ClientID; } public void setClientID(java.lang.String ClientID) { this.ClientID = ClientID } ... and in the call; ... SOAPMappingRegistry smr = new SOAPMappingRegistry(); BeanSerializer beanSer = new BeanSerializer(); RequestHeader QName qname = new QName("RequestHeader","my.package.RequestHeader"); smr.mapTypes(Constants.NS_URI_SOAP_ENC, qname , my.package.Reque   More>>

I have the following problem - I need to create an envelope like this: (stub)












...

I have the following bean-methods:

...

public java.lang.String getClientID() {
return ClientID;
}

public void setClientID(java.lang.String ClientID) {
this.ClientID = ClientID
}
...

and in the call;

...

SOAPMappingRegistry smr = new SOAPMappingRegistry();
BeanSerializer beanSer = new BeanSerializer();
RequestHeader QName qname = new QName("RequestHeader","my.package.RequestHeader");
smr.mapTypes(Constants.NS_URI_SOAP_ENC, qname , my.package.RequestHeader.class, beanSer, beanSer);

...

Code works fine, generates a SOAP-call, *BUT* it looks like this:

...









...

So, it refuses to use UPPERCASE names for "ClientID" and "MyID". The service I´m calling is case-sesitive, and must be called with "ClientID" etc (first char must be uppercase). is there a solution? Help!

   <<Less
About | Sitemap | Contact