http://code.google.com/p/jsonwebservice/downloads/list
also new client endpoint document for yui and jquery fans available.
Demo apps also located at http://examples.jsonsoap.org
Tuesday, August 9, 2011
Thursday, May 5, 2011
Overwrite jaxws endpoint property
When you need to overwrite endpoint property you can do it following,
((BindingProvider)portimpl).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://myhost/myservice/myport");
Note: This sets only instance of "portimpl" object, when you create new port default or genarted address assigned.
Warn: When you use dynamic/multiple server based on request you need to properly synchronize or recreate port object.
((BindingProvider)portimpl).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://myhost/myservice/myport");
Note: This sets only instance of "portimpl" object, when you create new port default or genarted address assigned.
Warn: When you use dynamic/multiple server based on request you need to properly synchronize or recreate port object.
Thursday, March 31, 2011
jsonwebserice 0.6 available for downlaod
http://code.google.com/p/jsonwebservice/downloads/list
enum,choice element handling updated, sync issues in high load and custom client document page overwrite possiblity added, for more you can always check or sync the source files.
enum,choice element handling updated, sync issues in high load and custom client document page overwrite possiblity added, for more you can always check or sync the source files.
Wednesday, February 23, 2011
clone jaxb object
To clone any jaxb object including object with out root element annotation do like following
ObjectItem objectItem = ..
JAXBContext jaxbContext = JAXBContext.newInstance(ObjectItem.class);
objectItem= jaxbContext.createUnmarshaller().unmarshal(new JAXBSource(jaxbContext,
new JAXBElement(
new QName("http://comp.namespace/version", "objectItem"),
ObjectItem.class,
objectItem)),ObjectItem.class).getValue();
Thursday, February 10, 2011
Waring on using MessageContext.MESSAGE_OUTBOUND_PROPERTY
If your internal developer or user, depending on packet.invocationProperties .get(MessageContext.MESSAGE_OUTBOUND_PROPERTY), with jax-ws 2.x this property may be null, casting to boolean with out null check leads runtime exception. With jax-ws 1.4 thsi property always presents. But in new version in some case it is not present, specially in request level packet.
Wednesday, February 9, 2011
jsonwebserice 0.5 available for downlaod
http://code.google.com/p/jsonwebservice/downloads/list
More bug fixes and improvements in mime body handling.
More bug fixes and improvements in mime body handling.
Saturday, January 15, 2011
metro 2.0.1 generated class compile issue
IF you have problem with compiling metro 2.0.1 generated stubs constructors, you need to pass -Xbootclasspath/p#webserivies-api.jar# as JVM argument. I had this issue many time while compiling using ant javac task.
Subscribe to:
Posts (Atom)