to get the whole you might consider org.apache.axis.MessageContext, which provides you 
SOAPMessage .
>From their you might step down.

>>> [EMAIL PROTECTED] 17.01.2003  22.25 Uhr >>>
Agreed...but I'd like to have the entire Envelope...anyone had any luck implementing a 
message-style service using the "public void method(SOAPEnvelope request, SOAPEnvelope 
response)" signature??

Cory

-----Original Message-----
From: Markus Frommherz [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 17, 2003 3:12 PM
To: [EMAIL PROTECTED] 
Subject: Antw: FW: Method 'request' does not match any of the
validsignatures


So here we go, and now you could map your Elements[] 1. by hand (no) or use JAXB 
(beta), better Castor( if you have a schema for your document, editors like stylus 
studio may be a help), to do the dirty work to map to java = "Your Code".

>>> [EMAIL PROTECTED] 17.01.2003  21.42 Uhr >>>
For what it's worth...the other types of message-style services seem to work 
fine...just not this one as indicated in the user guide:

Message services
-------------------
Finally, we arrive at "Message" style services, which should be used when you want 
Axis to step back and let your code at the actual XML instead of turning it into Java 
objects. There are four valid signatures for your message-style service methods:

public Element [] method(Element [] bodies);
public SOAPBodyElement [] method (SOAPBodyElement [] bodies);
public Document method(Document body);
public void method(SOAPEnvelope req, SOAPEnvelope resp); 


-----Original Message-----
From: Cory Wilkerson 
Sent: Friday, January 17, 2003 2:18 PM
To: [EMAIL PROTECTED] 
Subject: Method 'request' does not match any of the valid signatures


Issue on the server side...any assistance would be appreciated.  I can't seem to pin 
it down...am I missing something?

I've implemented a message-style service defined as:

-------------------------------------
package com.cory.xml.service;

import javax.xml.soap.SOAPEnvelope;

public class XMLInterface {

    /**
     * Services an incoming XML request.
     * Provides authentication and routing based off of soap headers.
     */
    public void request(SOAPEnvelope request, SOAPEnvelope response) {


    }
}
----------------------------------------

Server spitting out:

------------------------------------------
SEVERE: Exception:
java.lang.Exception: Method 'request' does not match any of the valid signatures
 for message-style service methods
        at org.apache.axis.InternalException.<init>(InternalException.java:108)
        at 
org.apache.axis.description.ServiceDesc.checkMessageMethod(ServiceDesc.java:726)

I thought that public void request(SOAPEnvelope request, SOAPEnvelope response) was a 
valid message-style service method, no???
------------------------------------------

Registered on the server (server-config.wsdd) as:

------------------------------------------
<service name="XmlMessageBased" provider="java:MSG">
  <requestFlow>
   <handler type="soapmonitor"/>
  </requestFlow>
  <responseFlow>
   <handler type="soapmonitor"/>
  </responseFlow>
  <parameter name="allowedMethods" value="request"/>
  <parameter name="scope" value="request"/>
  <parameter name="className" value="com.cory.xml.service.XMLInterface"/>
 </service>


Reply via email to