tested with 1.2.1 and 2.0.1. then i deployed jbossws-2.0.1, same problem.

strange thing is that it works when i use the generated classes it in a simple 
main-class without jboss, so i guess there must be a classpath-problem. but i 
don't deploy any webservice-related jar-file together with my application.

maybe the generated source code can help:


  | package com.shark.ewob.services.approveactivity;
  | 
  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebResult;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | 
  | /**
  |  * This class was generated by the JAX-WS RI.
  |  * JAX-WS RI 2.1.1-b03-
  |  * Generated source version: 2.0
  |  * 
  |  */
  | @WebService(name = "ApproveActivity", targetNamespace = 
"http://xmlns.oracle.com/ApproveActivity";)
  | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
  | public interface ApproveActivity {
  | 
  | 
  |     /**
  |      * 
  |      * @param payload
  |      * @return
  |      *     returns 
com.shark.ewob.services.approveactivity.ApproveActivityOUT
  |      */
  |     @WebMethod(action = "process")
  |     @WebResult(name = "ApproveActivityOUT", targetNamespace = 
"http://www.example.org";, partName = "payload")
  |     public ApproveActivityOUT process(
  |         @WebParam(name = "ApproveActivityIN", targetNamespace = 
"http://www.example.org";, partName = "payload")
  |         ApproveActivityIN payload);
  | 
  | }
  | 


  | 
  | package com.shark.ewob.services.approveactivity;
  | 
  | import java.net.MalformedURLException;
  | import java.net.URL;
  | import javax.xml.namespace.QName;
  | import javax.xml.ws.Service;
  | import javax.xml.ws.WebEndpoint;
  | import javax.xml.ws.WebServiceClient;
  | 
  | 
  | /**
  |  * This class was generated by the JAX-WS RI.
  |  * JAX-WS RI 2.1.1-b03-
  |  * Generated source version: 2.0
  |  * 
  |  */
  | @WebServiceClient(name = "ApproveActivity", targetNamespace = 
"http://xmlns.oracle.com/ApproveActivity";, wsdlLocation = 
"http://localhost:8888/orabpel/default/ApproveActivity/1.0/ApproveActivity?wsdl";)
  | public class ApproveActivity_Service
  |     extends Service
  | {
  | 
  |     private final static URL APPROVEACTIVITY_WSDL_LOCATION;
  | 
  |     static {
  |         URL url = null;
  |         try {
  |             url = new 
URL("http://localhost:8888/orabpel/default/ApproveActivity/1.0/ApproveActivity?wsdl";);
  |         } catch (MalformedURLException e) {
  |             e.printStackTrace();
  |         }
  |         APPROVEACTIVITY_WSDL_LOCATION = url;
  |     }
  | 
  |     public ApproveActivity_Service(URL wsdlLocation, QName serviceName) {
  |         super(wsdlLocation, serviceName);
  |     }
  | 
  |     public ApproveActivity_Service() {
  |         super(APPROVEACTIVITY_WSDL_LOCATION, new 
QName("http://xmlns.oracle.com/ApproveActivity";, "ApproveActivity"));
  |     }
  | 
  |     /**
  |      * 
  |      * @return
  |      *     returns ApproveActivity
  |      */
  |     @WebEndpoint(name = "ApproveActivityPort")
  |     public ApproveActivity getApproveActivityPort() {
  |         return (ApproveActivity)super.getPort(new 
QName("http://xmlns.oracle.com/ApproveActivity";, "ApproveActivityPort"), 
ApproveActivity.class);
  |     }
  | 
  | }
  | 


  | package com.shark.ewob.services.approveactivity;
  | 
  | import javax.xml.bind.annotation.XmlAccessType;
  | import javax.xml.bind.annotation.XmlAccessorType;
  | import javax.xml.bind.annotation.XmlElement;
  | import javax.xml.bind.annotation.XmlRootElement;
  | import javax.xml.bind.annotation.XmlType;
  | 
  | 
  | /**
  |  * <p>Java class for anonymous complex type.
  |  * 
  |  * <p>The following schema fragment specifies the expected content 
contained within this class.
  |  * 
  |  * <pre>
  |  * <complexType>
  |  *   <complexContent>
  |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType";>
  |  *       <sequence>
  |  *         <element name="activityId">
  |  *           <simpleType>
  |  *             <restriction base="{http://www.w3.org/2001/XMLSchema}int";>
  |  *               <minInclusive value="0"/>
  |  *             </restriction>
  |  *           </simpleType>
  |  *         </element>
  |  *         <element name="action">
  |  *           <simpleType>
  |  *             <restriction base="{http://www.w3.org/2001/XMLSchema}string";>
  |  *               <enumeration value="approve"/>
  |  *               <enumeration value="reject"/>
  |  *             </restriction>
  |  *           </simpleType>
  |  *         </element>
  |  *         <element name="approverId">
  |  *           <simpleType>
  |  *             <restriction base="{http://www.w3.org/2001/XMLSchema}int";>
  |  *               <minExclusive value="0"/>
  |  *             </restriction>
  |  *           </simpleType>
  |  *         </element>
  |  *         <element name="comment">
  |  *           <simpleType>
  |  *             <restriction base="{http://www.w3.org/2001/XMLSchema}string";>
  |  *               <maxLength value="255"/>
  |  *             </restriction>
  |  *           </simpleType>
  |  *         </element>
  |  *       </sequence>
  |  *     </restriction>
  |  *   </complexContent>
  |  * </complexType>
  |  * </pre>
  |  * 
  |  * 
  |  */
  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = "", propOrder = {
  |     "activityId",
  |     "action",
  |     "approverId",
  |     "comment"
  | })
  | @XmlRootElement(name = "ApproveActivityIN")
  | public class ApproveActivityIN {
  | 
  |     protected int activityId;
  |     @XmlElement(required = true)
  |     protected String action;
  |     protected int approverId;
  |     @XmlElement(required = true)
  |     protected String comment;
  | 
  |     /**
  |      * Gets the value of the activityId property.
  |      * 
  |      */
  |     public int getActivityId() {
  |         return activityId;
  |     }
  | 
  |     /**
  |      * Sets the value of the activityId property.
  |      * 
  |      */
  |     public void setActivityId(int value) {
  |         this.activityId = value;
  |     }
  | 
  |     /**
  |      * Gets the value of the action property.
  |      * 
  |      * @return
  |      *     possible object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public String getAction() {
  |         return action;
  |     }
  | 
  |     /**
  |      * Sets the value of the action property.
  |      * 
  |      * @param value
  |      *     allowed object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public void setAction(String value) {
  |         this.action = value;
  |     }
  | 
  |     /**
  |      * Gets the value of the approverId property.
  |      * 
  |      */
  |     public int getApproverId() {
  |         return approverId;
  |     }
  | 
  |     /**
  |      * Sets the value of the approverId property.
  |      * 
  |      */
  |     public void setApproverId(int value) {
  |         this.approverId = value;
  |     }
  | 
  |     /**
  |      * Gets the value of the comment property.
  |      * 
  |      * @return
  |      *     possible object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public String getComment() {
  |         return comment;
  |     }
  | 
  |     /**
  |      * Sets the value of the comment property.
  |      * 
  |      * @param value
  |      *     allowed object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public void setComment(String value) {
  |         this.comment = value;
  |     }
  | 
  | }
  | 


  | package com.shark.ewob.services.approveactivity;
  | 
  | import javax.xml.bind.annotation.XmlAccessType;
  | import javax.xml.bind.annotation.XmlAccessorType;
  | import javax.xml.bind.annotation.XmlElement;
  | import javax.xml.bind.annotation.XmlRootElement;
  | import javax.xml.bind.annotation.XmlType;
  | 
  | 
  | /**
  |  * <p>Java class for anonymous complex type.
  |  * 
  |  * <p>The following schema fragment specifies the expected content 
contained within this class.
  |  * 
  |  * <pre>
  |  * <complexType>
  |  *   <complexContent>
  |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType";>
  |  *       <sequence>
  |  *         <element name="result">
  |  *           <simpleType>
  |  *             <restriction base="{http://www.w3.org/2001/XMLSchema}string";>
  |  *               <enumeration value="success"/>
  |  *               <enumeration value="error"/>
  |  *             </restriction>
  |  *           </simpleType>
  |  *         </element>
  |  *         <element name="message" 
type="{http://www.w3.org/2001/XMLSchema}string"/>
  |  *       </sequence>
  |  *     </restriction>
  |  *   </complexContent>
  |  * </complexType>
  |  * </pre>
  |  * 
  |  * 
  |  */
  | @XmlAccessorType(XmlAccessType.FIELD)
  | @XmlType(name = "", propOrder = {
  |     "result",
  |     "message"
  | })
  | @XmlRootElement(name = "ApproveActivityOUT")
  | public class ApproveActivityOUT {
  | 
  |     @XmlElement(required = true)
  |     protected String result;
  |     @XmlElement(required = true, nillable = true)
  |     protected String message;
  | 
  |     /**
  |      * Gets the value of the result property.
  |      * 
  |      * @return
  |      *     possible object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public String getResult() {
  |         return result;
  |     }
  | 
  |     /**
  |      * Sets the value of the result property.
  |      * 
  |      * @param value
  |      *     allowed object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public void setResult(String value) {
  |         this.result = value;
  |     }
  | 
  |     /**
  |      * Gets the value of the message property.
  |      * 
  |      * @return
  |      *     possible object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public String getMessage() {
  |         return message;
  |     }
  | 
  |     /**
  |      * Sets the value of the message property.
  |      * 
  |      * @param value
  |      *     allowed object is
  |      *     [EMAIL PROTECTED] String }
  |      *     
  |      */
  |     public void setMessage(String value) {
  |         this.message = value;
  |     }
  | 
  | }
  | 


  | 
  | package com.shark.ewob.services.approveactivity;
  | 
  | import javax.xml.bind.annotation.XmlRegistry;
  | 
  | 
  | /**
  |  * This object contains factory methods for each 
  |  * Java content interface and Java element interface 
  |  * generated in the com.shark.ewob.services.approveactivity package. 
  |  * <p>An ObjectFactory allows you to programatically 
  |  * construct new instances of the Java representation 
  |  * for XML content. The Java representation of XML 
  |  * content can consist of schema derived interfaces 
  |  * and classes representing the binding of schema 
  |  * type definitions, element declarations and model 
  |  * groups.  Factory methods for each of these are 
  |  * provided in this class.
  |  * 
  |  */
  | @XmlRegistry
  | public class ObjectFactory {
  | 
  | 
  |     /**
  |      * Create a new ObjectFactory that can be used to create new instances 
of schema derived classes for package: com.shark.ewob.services.approveactivity
  |      * 
  |      */
  |     public ObjectFactory() {
  |     }
  | 
  |     /**
  |      * Create an instance of [EMAIL PROTECTED] ApproveActivityOUT }
  |      * 
  |      */
  |     public ApproveActivityOUT createApproveActivityOUT() {
  |         return new ApproveActivityOUT();
  |     }
  | 
  |     /**
  |      * Create an instance of [EMAIL PROTECTED] ApproveActivityIN }
  |      * 
  |      */
  |     public ApproveActivityIN createApproveActivityIN() {
  |         return new ApproveActivityIN();
  |     }
  | 
  | }
  | 

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

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

Reply via email to