2 Replies Latest reply on Jul 28, 2006 8:34 AM by Simone Taliercio

    In which package I can found XOPMarshaller ?

    Simone Taliercio Newbie

      Hi JBoss Community,

      I solve some problems with new release of jbossws... great work, JBoss Staff!! :-)

      Now, I've got some exceptions that I don't understand very well :(
      In particular, where can I find org/jboss/xb/binding/sunday/xop/XOPMarshaller ? In jbossws-1.0.2 it seems not exists!

      Caused by: java.lang.NoClassDefFoundError: org/jboss/xb/binding/sunday/xop/XOPMarshaller
      at org.jboss.ws.jaxrpc.encoding.SimpleSerializerFactory.getSerializer(SimpleSerializerFactory.java:37)
      at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:144)
      at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.java:802)
      at org.jboss.ws.soap.SOAPContentElement.getChildNodes(SOAPContentElement.java:719)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:211)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270)
      at org.jboss.util.xml.DOMWriter.print(DOMWriter.java:186)
      at org.jboss.ws.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:251)
      at org.jboss.ws.binding.soap.SOAPMessageMarshaller.write(SOAPMessageMarshaller.java:78)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:164)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
      at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
      at org.jboss.remoting.Client.invoke(Client.java:525)
      at org.jboss.remoting.Client.invoke(Client.java:488)
      at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:186)


      All exceptions give me from jboss-ide:
      java.rmi.RemoteException: Call invocation failed: Could not transmit message; nested exception is:
      javax.xml.soap.SOAPException: Could not transmit message
      at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
      at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
      at src.clients.DIIClient.main(DIIClient.java:47)
      Caused by: javax.xml.soap.SOAPException: Could not transmit message
      at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:201)
      at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
      ... 2 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/xb/binding/sunday/xop/XOPMarshaller
      at org.jboss.ws.jaxrpc.encoding.SimpleSerializerFactory.getSerializer(SimpleSerializerFactory.java:37)
      at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:144)
      at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.java:802)
      at org.jboss.ws.soap.SOAPContentElement.getChildNodes(SOAPContentElement.java:719)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:211)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270)
      at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270)
      at org.jboss.util.xml.DOMWriter.print(DOMWriter.java:186)
      at org.jboss.ws.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:251)
      at org.jboss.ws.binding.soap.SOAPMessageMarshaller.write(SOAPMessageMarshaller.java:78)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:164)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
      at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
      at org.jboss.remoting.Client.invoke(Client.java:525)
      at org.jboss.remoting.Client.invoke(Client.java:488)
      at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:186)
      ... 3 more


      And source code of my DII client:
      package src.clients;
      
      import java.net.URL;
      
      import javax.xml.rpc.Service;
      import javax.xml.rpc.ServiceFactory;
      import javax.xml.rpc.Call;
      import javax.xml.rpc.JAXRPCException;
      import javax.xml.namespace.QName;
      import javax.xml.rpc.ParameterMode;
      import javax.xml.rpc.encoding.XMLType;
      
      
      public class DIIClient {
      
       private static String endpoint = "http://pc3000:8080/NewVersionAll/HelloBean";
       private static String qnameService = "Risposta";
       private static String qnamePort = "EndpointInterface";
       private static String BODY_NAMESPACE_VALUE = "http://org.jboss.ws/samples/jsr181ejb";
       private static String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
       private static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
       private static String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
      
       public static void main(String[] args) {
       try {
       ServiceFactory factory = ServiceFactory.newInstance();
       Service service = factory.createService(new QName(qnameService));
      
       QName port = new QName(qnamePort);
      
       //create JAX-RPC Call using JAX-RPC Service's createCall() method.
       Call call = service.createCall(port);
      
       // Configure your Call instance with its setter methods
       call.setTargetEndpointAddress(endpoint);
       call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
       call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
       call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
       QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
       call.setOperationName(new QName(BODY_NAMESPACE_VALUE, "reply"));
       call.setReturnType(QNAME_TYPE_STRING);
      
       call.addParameter("String_1", QNAME_TYPE_STRING, ParameterMode.IN);
       String[] params = { "Duke!" };
      
       // Invoke the WS operation using the JAX-RPC Call's invoke method
       String result = (String) call.invoke(params);
      
       System.out.println("result");
      
       } catch (Exception ex) {
       ex.printStackTrace();
       }
       }
      
      }


      Help me please. From this it can depends my thesis (on web services security).

      Bye!