You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Patrick Verboom <pa...@juwimm.com> on 2004/11/18 10:21:53 UTC
no server-config.wsdd what should i do?
Hi,
The documentation is talking about a server-config.wsdd file that should
be located in the WEB-INF directory. But the default axis webapp doesn't
have a server-config.wsdd file in the WEB-INF.
What to do now? If i create one by hand what should it look like. Are
there any manuals/descriptions for this? Can someone show me an example?
Regards,
Patrick Verboom
Re: no server-config.wsdd what should i do?
Posted by Vinay Punnoose <vi...@gmail.com>.
Hi Patrick,
You can even create the server-config.wsdd with running the following
command(in your console) on your deploy.wsdd which you got to create.
java org.apache.axis.client.AdminClient deploy.wsdd-l
http://localhost:8080/axis/services/AdminService
After the command you will see the output in the console window
Processing file deploy.wsdd
<Admin> Done processing </Admin>
Now you can see the server-config.wsdd in the WEB-INF folder.
Put the class file for the class you want to expose as webservice in
WEB-INF\ classes folder for axis, and you'll have your service
completely deployed.
Typical entries in the deploy.wsdd are
<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
xmlns:xsi="http://www/w3.org/2000/10/XMLSchema-instance">
<service name="Web Service name" provider="Provider type">
<parameter name="className"
value="Java class name"/>
<parameter name="allowedMethods" value="method names"/>
</service>
</deployment>
For drop in deployments , there isnt any entry in server-config.wsdd.
Regards
Vinay
On Thu, 18 Nov 2004 17:30:31 +0800, Yeo Wee Tat <su...@wavex-tech.com> wrote:
> Hi ,
>
> server-config.wsdd is located in the axis webapps when installed the
> war into tomcat container.
>
> below is the sample of the file:
> <?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:\tomcat\jakarta-tomcat-5.0.25\webapps\libra\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="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"/>
> <service name="MonitorStatus" provider="java:RPC">
> <parameter name="allowedMethods" value="*"/>
> <parameter name="className"
> value="nlb.libra.monitor.daemon.MonitorStatusService"/>
> <beanMapping
> languageSpecificType="java:nlb.libra.monitor.model.MonitorRecord"
> qname="ns1:MonitorRecord" xmlns:ns1="urn:MonitorService"/>
> <beanMapping languageSpecificType="java:java.util.List"
> qname="ns2:ListRecord" xmlns:ns2="urn:ListService"/>
> </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="MessageService" provider="java:MSG" style="message"
> use="literal">
> <parameter name="allowedMethods" value="echoElements"/>
> <parameter name="className" value="com.axis.test.MessageService"/>
> </service>
> <service name="Version" provider="java:RPC">
> <parameter name="allowedMethods" value="getVersion"/>
> <parameter name="className" value="org.apache.axis.Version"/>
> </service>
> <service name="monitor" provider="java:RPC">
> <operation name="getCurrentDeviceStatusRecords"
> qname="ns12:getCurrentDeviceStatusRecords"
> returnQName="getCurrentDeviceStatusRecordsReturn"
> returnType="ns12:ArrayOf_tns2_MonitorRecord" xmlns:ns12="urn:monitor"/>
> <operation name="getCurrentStatusList"
> qname="ns13:getCurrentStatusList"
> returnQName="getCurrentStatusListReturn" returnType="soapenc:Array"
> xmlns:ns13="urn:monitor"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/>
> <parameter name="allowedMethods" value="getCurrentDeviceStatusRecords
> getCurrentStatusList"/>
> <parameter name="wsdlPortType" value="Monitor"/>
> <parameter name="scope" value="Session"/>
> <parameter name="className"
> value="nlb.libra.monitor.webservice.ws.MonitorSoapBindingImpl"/>
> <parameter name="wsdlServicePort" value="monitor"/>
> <parameter name="wsdlTargetNamespace" value="urn:monitor"/>
> <parameter name="wsdlServiceElement" value="MonitorService"/>
> <typeMapping
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> qname="ns14:ArrayOf_tns2_MonitorRecord"
> serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
> type="java:nlb.libra.monitor.webservice.ws.MonitorRecord[]"
> xmlns:ns14="urn:monitor"/>
> <typeMapping
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> qname="ns15:MonitorRecord"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> type="java:nlb.libra.monitor.webservice.ws.MonitorRecord"
> xmlns:ns15="http://model.monitor.libra.nlb"/>
> <typeMapping
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> qname="ns16:MonitorRecord"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> type="java:nlb.libra.monitor.model.MonitorRecord"
> xmlns:ns16="http://model.monitor.libra.nlb"/>
> </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>
>
>
>
> Patrick Verboom wrote:
>
> > Hi,
> >
> > The documentation is talking about a server-config.wsdd file that
> > should be located in the WEB-INF directory. But the default axis
> > webapp doesn't have a server-config.wsdd file in the WEB-INF.
> >
> > What to do now? If i create one by hand what should it look like. Are
> > there any manuals/descriptions for this? Can someone show me an example?
> >
> > Regards,
> > Patrick Verboom
> >
> >
> > .
> >
>
>
How can I get this SOAP response?
Posted by Daniela CLARO <da...@eseo.fr>.
Hi all,
<?xml version="1.0" encoding="UTF-8"?>
<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:Body>
<findFlightResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<findFlightReturn href="#id0"/>
</findFlightResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns1:ReturnFlight"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:Flight">
<numberFlight xsi:type="soapenc:string">1234</numberFlight>
<price xsi:type="soapenc:string">625.30</price>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
I am trying to get this response numberFlight and price but they belongs to
a type called ReturnFlight. I did that in my appplication:
ReturnFlight ret = new ReturnFlight();
ret = (ReturnFlight)call.invoke( new Object [] { fromCity,
toCity,dtDeparture,dtArrival });
But I receive a convertion error:
Exception in thread "main" java.lang.ClassCastException
at FlightAXISClient.main(FlightAXISClient.java:67)
How can I do to retrieve my values in my application client?
Thank you very much,
DAniela
Re: no server-config.wsdd what should i do?
Posted by Yeo Wee Tat <su...@wavex-tech.com>.
Hi ,
server-config.wsdd is located in the axis webapps when installed the
war into tomcat container.
below is the sample of the file:
<?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:\tomcat\jakarta-tomcat-5.0.25\webapps\libra\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="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"/>
<service name="MonitorStatus" provider="java:RPC">
<parameter name="allowedMethods" value="*"/>
<parameter name="className"
value="nlb.libra.monitor.daemon.MonitorStatusService"/>
<beanMapping
languageSpecificType="java:nlb.libra.monitor.model.MonitorRecord"
qname="ns1:MonitorRecord" xmlns:ns1="urn:MonitorService"/>
<beanMapping languageSpecificType="java:java.util.List"
qname="ns2:ListRecord" xmlns:ns2="urn:ListService"/>
</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="MessageService" provider="java:MSG" style="message"
use="literal">
<parameter name="allowedMethods" value="echoElements"/>
<parameter name="className" value="com.axis.test.MessageService"/>
</service>
<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>
<service name="monitor" provider="java:RPC">
<operation name="getCurrentDeviceStatusRecords"
qname="ns12:getCurrentDeviceStatusRecords"
returnQName="getCurrentDeviceStatusRecordsReturn"
returnType="ns12:ArrayOf_tns2_MonitorRecord" xmlns:ns12="urn:monitor"/>
<operation name="getCurrentStatusList"
qname="ns13:getCurrentStatusList"
returnQName="getCurrentStatusListReturn" returnType="soapenc:Array"
xmlns:ns13="urn:monitor"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/>
<parameter name="allowedMethods" value="getCurrentDeviceStatusRecords
getCurrentStatusList"/>
<parameter name="wsdlPortType" value="Monitor"/>
<parameter name="scope" value="Session"/>
<parameter name="className"
value="nlb.libra.monitor.webservice.ws.MonitorSoapBindingImpl"/>
<parameter name="wsdlServicePort" value="monitor"/>
<parameter name="wsdlTargetNamespace" value="urn:monitor"/>
<parameter name="wsdlServiceElement" value="MonitorService"/>
<typeMapping
deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
qname="ns14:ArrayOf_tns2_MonitorRecord"
serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
type="java:nlb.libra.monitor.webservice.ws.MonitorRecord[]"
xmlns:ns14="urn:monitor"/>
<typeMapping
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
qname="ns15:MonitorRecord"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
type="java:nlb.libra.monitor.webservice.ws.MonitorRecord"
xmlns:ns15="http://model.monitor.libra.nlb"/>
<typeMapping
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
qname="ns16:MonitorRecord"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
type="java:nlb.libra.monitor.model.MonitorRecord"
xmlns:ns16="http://model.monitor.libra.nlb"/>
</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>
Patrick Verboom wrote:
> Hi,
>
> The documentation is talking about a server-config.wsdd file that
> should be located in the WEB-INF directory. But the default axis
> webapp doesn't have a server-config.wsdd file in the WEB-INF.
>
> What to do now? If i create one by hand what should it look like. Are
> there any manuals/descriptions for this? Can someone show me an example?
>
> Regards,
> Patrick Verboom
>
>
> .
>