Never mind. I got it working after some trial and error sequences of the deployments.
I wish to convey my sincere appreciations for your support in this issue. -----Original Message----- From: Guha, Suteertha [IE] [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 12:57 PM To: '[EMAIL PROTECTED]' Subject: RE: anyType in document style webservice Thanks a lot. I am able to deploy and test successfully. I want to make a WAR file out of these classes. I made a WAR file with a server-config.wsdd under WEB-INF in WebLogic 8.1. I can see the service in the browser, but the wsdl is not getting generated, and I see a 500 error on the URL : http://taste.mk.telcordia.com:6254/axis/services/BlobSoap?wsdl This must be something very basic I am missing. Can you please help, AGAIN? The server-config.wsdd is like this : <?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="/u/sguha/WLS812Domain/applications/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"/> <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="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> <service name="BlobSoap" provider="java:RPC" style="document"> <parameter name="allowedMethods" value="*"/> <parameter name="wsdlPortType" value="BlobSoap"/> <parameter name="className" value="org.openuri.www.BlobSoapBindingSkeleton"/> <parameter name="wsdlServicePort" value="BlobSoap"/> <parameter name="wsdlTargetNamespace" value="http://www.openuri.org/"/> <parameter name="wsdlServiceElement" value="Blob"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap .org/soap/encoding/" qname="ns1:>DocumentResponse" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" ty pe="java:org.openuri.www._DocumentResponse" xmlns:ns1="http://www.openuri.org/"/> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap .org/soap/encoding/" qname="ns2:>DocumentRequest" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" typ e="java:org.openuri.www._DocumentRequest" xmlns:ns2="http://www.openuri.org/"/> </service> <transport name="http"> <requestFlow> <handler type="URLMapper"/> <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/> </requestFlow> <parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/> <parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/> <parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/> </transport> <transport name="local"> <responseFlow> <handler type="LocalResponder"/> </responseFlow> </transport> </deployment> -----Original Message----- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 7:32 AM To: [EMAIL PROTECTED] Subject: RE: anyType in document style webservice Suteertha, I suggest that you define two separate elements -- one for input and one for output. (Right now Axis interprets your document as an in/out parameter.) Like this: <element name="Document" type="AnyDocumentType" /> <element name="DocumentResponse" type="AnyDocumentType" /> <complexType name="AnyDocumentType"> <sequence> <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> <wsdl:message name="processMessageRequest"> <wsdl:part name="request" element="impl:Document" /> </wsdl:message> <wsdl:message name="processMessageResponse"> <wsdl:part name="response" element="impl:DocumentResponse" /> </wsdl:message> Anne -----Original Message----- From: Guha, Suteertha [IE] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 12:01 PM To: '[EMAIL PROTECTED]' Subject: RE: anyType in document style webservice Thanks for the suggestions. I made changes to the WSDL, but the generated stub is not showing return params, it has a return type of void. Can you please help me out? Is there something missing in the WSDL? /** * BlobSoapBindingImpl.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2beta Mar 31, 2004 (12:47:03 EST) WSDL2Java emitter. */ package org.openuri.www; public class BlobSoapBindingImpl implements org.openuri.www.BlobSoap{ public void processMessage(org.openuri.www.holders._DocumentHolder parameters) throws java.rmi.RemoteException { } } ======================================================================== WSDL : <wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://www.openuri.org/" xmlns:intf="http://www.openuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.openuri.org/" xmlns:tns="http://telcordia.com"> <wsdl:types> <schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="Document"> <complexType name="AnyDocumentType"> <sequence> <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> </element> </schema> </wsdl:types> <wsdl:message name="processMessageRequest"> <wsdl:part name="parameters" element="impl:Document" /> </wsdl:message> <wsdl:message name="processMessageResponse"> <wsdl:part name="parameters" element="impl:Document" /> </wsdl:message> <wsdl:portType name="BlobSoap"> <wsdl:operation name="processMessage" parameterOrder=""> <wsdl:input name="processMessageRequest" message="impl:processMessageRequest"/> <wsdl:output name="processMessageResponse" message="impl:processMessageResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="BlobSoapBinding" type="impl:BlobSoap"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="processMessage"> <wsdlsoap:operation soapAction="http://www.openuri.org/processMessage"/> <wsdl:input> <wsdlsoap:body use="literal"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Blob"> <wsdl:port name="BlobSoap" binding="impl:BlobSoapBinding"> <wsdlsoap:address location="http://taste.mk.telcordia.com:6254/axis/services/BlobSoap"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
