axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: Header in wsdd
Date Fri, 16 Jan 2004 17:53:42 GMT
FYI - I am looking in to implementing this, but no promises....

 

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Tom Jordahl [mailto:tomj@macromedia.com] 
Sent: Friday, January 16, 2004 12:52 PM
To: 'axis-dev@ws.apache.org'
Subject: RE: Header in wsdd

 

Java2WSDL is used by Axis to generate WSDL both from the command line and
when the server is running.  Same code.

 

And yes, you are correct that Axis does NOT generate WSDL for headers.

 

The workaround is to provide a static WSDL in the WSDD for Axis to return
for your service that includes the correct header WSDL.

 

Sorry about that.

 

 

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Ransel Lopez [mailto:rlopez@timeindustrial.com] 
Sent: Friday, January 16, 2004 12:05 PM
To: axis-dev@ws.apache.org
Cc: Tom Jordahl
Subject: RE: Header in wsdd

 

Tom,

 

We are using Axis 1.1 (Stable Release). I don't believe I'm using the
Java2WSDL tool. The WSDL is automatically generated by Axis from the WSDD. I
think the problem is that the option in the WSDD to include the parameter in
the header is ignored when Axis generates the WSDL.

 

The WSDD is already included in my last email...

 

Is this the case?

 

Thank you very much for your help!



Ransel López, Web Services Developer

Time Industrial, Inc.
 An Outsourced Contractor Time and Cost Tracking Service.
 
----------------------------------------------------------------------------
-------------
tel: 780.413.1521  fax: 780.413.0474
 http://www.TimeIndustrial.com <http://www.timeindustrial.com/>  

 
----------------------------------------------------------------------------
-------------
 This message and attached files, if any, is (are) intended only for the
addressee(s) and may 
 contain privileged or confidential information. Any unauthorized disclosure
is strictly prohibited. 
 If destined to our legal counsel, this transmission is privileged
communication as between an 
 attorney and its client.
 If you have received this message in error, please notify us immediately so
that we may correct 
 our internal records. Please then delete the original message. Thank you.

 
  

-----Original Message-----
From: Tom Jordahl [mailto:tomj@macromedia.com] 
Sent: Friday, January 16, 2004 9:56 AM
To: Ransel Lopez
Cc: 'axis-dev@ws.apache.org'
Subject: RE: Header in wsdd

Ransel,

 

Please continue to include Axis-dev in the Email so others can follow along
and help.

 

This WSDL certainly doesn't indicate that there is a header.

Are we missing the code in Java2WSDL to support this?

 

Ransel, are you using Axis 1.1 or recent CVS source?

 

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Ransel Lopez [mailto:rlopez@timeindustrial.com] 
Sent: Friday, January 16, 2004 11:51 AM
To: Tom Jordahl
Subject: RE: Header in wsdd

 

Here is are my wsdd file and wsdl result:

 

Thank you very much, Tom!!!!!

Let me know if I am missing something...

 

WSDL:

 

<?xml version="1.0" encoding="utf-16"?>

<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://localhost:8080/timeindustrial/services/TimeIndustrialServi
ce" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
targetNamespace="http://localhost:8080/timeindustrial/services/TimeIndustria
lService" xmlns="http://schemas.xmlsoap.org/wsdl/">

  <types />

  <message name="testRequest">

    <part name="sessionID" type="s:string" />

  </message>

  <message name="testResponse" />

  <portType name="TimeIndustrial">

    <operation name="test" parameterOrder="sessionID">

      <input name="testRequest" message="tns:testRequest" />

      <output name="testResponse" message="tns:testResponse" />

    </operation>

  </portType>

  <binding name="TimeIndustrialServiceSoapBinding"
type="tns:TimeIndustrial">

    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc" />

    <operation name="test">

      <soap:operation soapAction="" />

      <input name="testRequest">

        <soap:body use="encoded"
namespace="http://localhost:8080/timeindustrial/services/TimeIndustrialServi
ce" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />

      </input>

      <output name="testResponse">

        <soap:body use="encoded"
namespace="http://localhost:8080/timeindustrial/services/TimeIndustrialServi
ce" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />

      </output>

    </operation>

  </binding>

  <service name="TimeIndustrialService">

    <port name="TimeIndustrialService"
binding="tns:TimeIndustrialServiceSoapBinding">

      <soap:address
location="http://localhost:8080/timeindustrial/services/TimeIndustrialServic
e" />

    </port>

  </service>

</definitions>

 

WSDD:

 

<?xml version="1.0" encoding="UTF-8"?>

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 <globalConfiguration>

  <parameter name="adminPassword" value="admin"/>

  <parameter name="attachments.Directory"
value="C:\opt\jakarta-tomcat\webapps\axis\WEB-INF\attachments"/>

  <parameter name="attachments.implementation"
value="org.apache.axis.attachments.AttachmentsImpl"/>

  <parameter name="sendXsiTypes" value="true"/>

  <parameter name="sendMultiRefs" value="true"/>

  <parameter name="sendXMLDeclaration" value="true"/>

  <parameter name="axis.sendMinimizedElements" value="true"/>

  <requestFlow>

   <handler type="java:org.apache.axis.handlers.JWSHandler">

    <parameter name="scope" value="session"/>

   </handler>

   <handler type="java:org.apache.axis.handlers.JWSHandler">

    <parameter name="scope" value="request"/>

    <parameter name="extension" value=".jwr"/>

   </handler>

  </requestFlow>

 </globalConfiguration>

 <handler name="fault"
type="java:com.timeindustrial.axis.TimeIndustrialExceptionHandler"/>

 <handler name="LocalResponder"
type="java:org.apache.axis.transport.local.LocalResponder"/>

 <handler name="URLMapper"
type="java:org.apache.axis.handlers.http.URLMapper"/>

 <handler name="Authenticate"
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>

 <handler name="session"
type="java:com.timeindustrial.axis.TimeIndustrialSessionHandler"/>

 

 <service name="TimeIndustrialService" provider="java:RPC">

  <parameter name="allowedMethods" value="test"/>

  <parameter name="scope" value="Application"/>

  <parameter name="className" value="com.timeindustrial.mw.TimeIndustrial"/>

 

  <requestFlow>

    <handler type="fault"/>      

    <handler type="session"/>      

  </requestFlow>   

  

  <operation name="test">

    <parameter name="sessionID" type="tns:string" inHeader="true"
outHeader="true" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>

  </operation>

   

</service>

 

 <service name="AdminService" provider="java:MSG">

  <parameter name="allowedMethods" value="AdminService"/>

  <parameter name="enableRemoteAdmin" value="false"/>

  <parameter name="className" value="org.apache.axis.utils.Admin"/>

  <namespace>http://xml.apache.org/axis/wsdd/</namespace>

 </service>

 <service name="Version" provider="java:RPC">

  <parameter name="allowedMethods" value="getVersion"/>

  <parameter name="className" value="org.apache.axis.Version"/>

 </service>

 <transport name="http">

  <requestFlow>

   <handler type="URLMapper"/>

   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>

  </requestFlow>

 </transport>

 <transport name="local">

  <responseFlow>

   <handler type="LocalResponder"/>

  </responseFlow>

 </transport>

</deployment>

 

 

 

 

 


Ransel López, Web Services Developer

Time Industrial, Inc.
 An Outsourced Contractor Time and Cost Tracking Service.
 
----------------------------------------------------------------------------
-------------
tel: 780.413.1521  fax: 780.413.0474
 http://www.TimeIndustrial.com <http://www.timeindustrial.com/>  

 
----------------------------------------------------------------------------
-------------
 This message and attached files, if any, is (are) intended only for the
addressee(s) and may 
 contain privileged or confidential information. Any unauthorized disclosure
is strictly prohibited. 
 If destined to our legal counsel, this transmission is privileged
communication as between an 
 attorney and its client.
 If you have received this message in error, please notify us immediately so
that we may correct 
 our internal records. Please then delete the original message. Thank you.

 


Mime
View raw message