java - How do you use FastInfoset with JAXWS? -


I have code that I think should be correct based on what I can find, but not wasteful output It is indicate that it is using FastInfoset to accept my understanding should it should indicate that it can accept Fastinfoset and the reaction will actually use it, which means that it is in the form of text / xml response type Is not anybody What am I doing wrong? . I wander with Google and I have a hard time finding exactly how to access information on FastInfoset.

  JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean (); Factory.getInInceptceptors () Add (New Log InInteceptor ()); Factory.getOutInterceptors () Add (new logon opacifetter ()); Factory.setServiceClass (C360Server.class); Factory.setAddress ("http: // localhost: 8501 / cxfcontroller / cl_v5"); C360 Server = Customer (C360 Server) factory.create (); (Binding Provider) Client) .getRequestContext (). Put ("com.sun.xml.ws.client.ContentNegotiation", "Optimist"); C360Request Request Trance = New C360Request (); ... code to fill request ... C360 Response Answer = client.findContacts (requestTrans);  

There is also no indication of FastInfoSet to log in that it is also tried:

  information: outbound message ----- ------ ---------------- ID: 1 Address: http: // localhost: 8501 / cxfcontroller / cl_v5 Encoding: UTF-8 Content-Type: Text / XML Header: {SOAPAction = [""], authorization = [original cWFfc3VwZXI6cWFfc3VwZXI =], accept = [* / *]} payload: & lt; Soaps: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soaf/envelope/" & gt; & Lt Soap: Body & gt; & Lt; Ns1 also: findContacts & gt; ... bunch of deleted xml for brevity ... & lt; / Ns1 also: findContacts & gt; & Lt; / Soap: body & gt; & Lt; / Soap: Envelope & gt; -------------------------------------- May 17, 2010 3:23:45 PM Organization Apache .cxf.interceptor.LoggingInInterceptor Logging Information: Inbound Message ---------------------------- ID: 1 Answer-Code: 200 Encoding: UTF -8 Content-Type: Text / xml; Charset = utf-8 Header: {content-type = [text / xml; Charset = utf-8], content-length = [611], server = [jetty (6.1.x)]} payload: & lt; Soap: envelope xmlns: soap = "http://schemas.xmlsoap.org/soap/ envelope /" & gt; & Lt; Soaps: Body & gt; & Lt; Ns1 also: findContactsResponse & gt; ... the bundle of xml for the brevity of lt destroyed vomiting ... and; / Ns1 also: findContactsResponse & gt; & Lt; / Soap: body & gt; & Lt; / Soap: Envelope & gt; --------------------------------------  

someone Also consider what am I doing wrong? Even if the server was not supporting FastInfoSoft, then I still should try to negotiate the request, okay?

"post-text" itemprop = "text">

The answer is that it was old about enabling the information I was on. The customer works on the following (and maybe the server is ending, but there is a spring configuration enabled that it handles)

  JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean () .; // This enables FastInfoset as the communication protocol factory.getInInceptceptors (). (Add new FIStaxInInterceptor ()); Factory.getOutInterceptors () Add (New FIStaxOutInterceptor ()); ... the other code goes here to set the user name, location, etc. Client = (C360Server) factory.create ();  

Comments