"[EMAIL PROTECTED]" wrote : Well, the Axis implementation might not follow 
standards, still the messages on the wire need to. Could you provide some more 
detailed error description, i.e. stacktrace, log output?

OK, here's the details.

The web service in JBoss 4.0.4.GA/JBossWS 1.0.2.GA looks like this.
It's basically a simple method that takes two strings as parameters.

// JSR-181 annotations
@WebService(name="AarEndpointInterface",
                targetNamespace="http://service.bar.foo.com/Aar";,
                serviceName="AarService")
@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)

// EJB3 annotations
@Remote(AarEJB3RemoteInterface.class)
@Stateless

// JBoss annotations
@RemoteBinding(jndiBinding = "/webservice/bar/Aar")

public class Aar implements AarEJB3RemoteInterface {
        
        @WebMethod
        public boolean func(
                        String firstInfo,
                        String messageText)
        { ...

The Axis 1.2-based client makes a call, which sends in this SOAP envelope,
as shown in the JBoss server.log:

2006-08-18 09:21:14,000 DEBUG [jbossws.SOAPMessage] Incomming SOAPMessage
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
 <soapenv:Header/>
 <soapenv:Body>
  <ns1:func soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' 
xmlns:ns1='http://service.bar.foo.com/Aar'>
   <ns1:arg0 xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' 
xsi:type='soapenc:string'>fff</ns1:arg0>
   <ns1:arg1 xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' 
xsi:type='soapenc:string'>g6</ns1:arg1>
  </ns1:func>
 </soapenv:Body>
</soapenv:Envelope>
2006-08-18 09:21:14,000 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] 
getDispatchDestination: {http://service.bar.foo.com/Aar}func
2006-08-18 09:21:14,000 DEBUG [org.jboss.ws.binding.soap.SOAPBindingProvider] 
unbindRequestMessage: {http://service.bar.foo.com/Aar}func
2006-08-18 09:21:14,000 DEBUG [javax.xml.rpc.soap.SOAPFaultException] new 
SOAPFaultException 
[code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=Cannot find 
child element: String_1,actor=null,detail=null]^M
2006-08-18 09:21:14,000 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] 
SOAP request exception
javax.xml.rpc.JAXRPCException: Cannot find child element: String_1
        at 
org.jboss.ws.binding.soap.SOAPBindingProvider.getParameterFromMessage(SOAPBindingProvider.java:777)
        at 
org.jboss.ws.binding.soap.SOAPBindingProvider.unbindRequestMessage(SOAPBindingProvider.java:236)
        at 
org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:112)
        at 
org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:219)
        at 
org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
        at 
org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...

The "Cannot find child element: String_1" exception is thus propogated
back to the Axis client.

thanks again,

J.L.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966117#3966117

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966117
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to