The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Binary Web Services and XML

Thread: Issues getting Fast Infoset working

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: May 12, 2009 5:25 AM by: peppeme Threads: [ Previous | Next ]
jodeen

Posts: 9
Issues getting Fast Infoset working
Posted: Oct 9, 2008 10:33 AM
 
  Click to reply to this thread Reply

I'm having some issues getting Fast Infoset working in general. I'm assuming that there's something simple missing.

Everything I've found on the web implies that setting up FI should be as simple as setting a property on my client-side stub (http://www.j2ee.me/webservices/docs/2.0/jaxrpc/fastinfoset/manual.html). But that doesn't seem to be working. When I use wsmonitor to look at the messages being sent, the requests don't have the application/fastinfoset in the HTTP accept header.

Is there something that I'm missing?
I'm running 1.6.0_07 for both the client and server. The web-service is deployed on glassfish v2ur2.

Here's my client-side code:
try { // Call Web Service Operation
fiweb.EchoService service = new fiweb.EchoService();
fiweb.Echo port = service.getEchoPort();
((BindingProvider) port).getRequestContext().put("com.sun.xml.ws.client.ContentNegotiation", "pessimistic");
java.lang.String message = "barr";
java.lang.String result = port.echo(message);
System.out.println("Result = " + result);
result = port.echo(message);
System.out.println("Result = " + result);

} catch (Exception ex) {
ex.printStackTrace();
}

And the server side code is just as simple:
@WebService()
public class Echo {

/**
* Web service operation
*/
@WebMethod(operationName = "echo")
public String echo(@WebParam(name = "message") String message) {
System.out.println("Recieved: " + message);
return "Recieved:" + message;
}
}

peppeme

Posts: 108
Re: Issues getting Fast Infoset working
Posted: May 12, 2009 2:56 AM   in response to: jodeen
 
  Click to reply to this thread Reply

I have the same problem..
Anyone, please?!

oleksiys

Posts: 79
Re: Issues getting Fast Infoset working
Posted: May 12, 2009 5:21 AM   in response to: peppeme
 
  Click to reply to this thread Reply

Can you pls. try to set "optimistic" mode, to check if it will make any difference?

peppeme

Posts: 108
Re: Issues getting Fast Infoset working
Posted: May 12, 2009 5:25 AM   in response to: oleksiys
 
  Click to reply to this thread Reply

Now It works.
maybe the jax-ws library import.
Before I import it the webservice client works fine but infoset doesn't work.
When I import the jars from jax-ws 2.1 netbeans library it works.

I'm verifying deeply this.




 XML java.net RSS