Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 12584 invoked from network); 7 Jul 2005 15:21:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2005 15:21:39 -0000 Received: (qmail 47334 invoked by uid 500); 7 Jul 2005 15:21:23 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 47328 invoked by uid 500); 7 Jul 2005 15:21:23 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 47314 invoked by uid 99); 7 Jul 2005 15:21:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 08:21:23 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [202.144.61.68] (HELO delmail1.sapient.com) (202.144.61.68) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 08:18:41 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Using AXIS for java web services Date: Thu, 7 Jul 2005 20:48:22 +0530 Message-ID: <88B56FBAEB84EC448511C30CD63D3F8A066EC9D6@delmail1.sapient.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using AXIS for java web services Thread-Index: AcWDBpQvkyluR6LfQOypSkszLWhOTAAAGCjw From: "Neelam Bhatnagar" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, We are using AXIS 1.2 for developing Java Web services. We have a java = program which is needed to be deployed as a web service. This program = uses methods from classes which are in a different package. Hence we = have an import statement in this program. This java = program is saved as a JWS file under the AXIS folder. But when we try to = access the WSDL for the JWS, the following error comes: AXIS error Sorry, something seems to have gone wrong... here are the details: Fault - Error while compiling: = /data/jakarta_tomcat_4.0.6/jakarta-tomcat-4.0.6/webapps/axis/WEB-INF/jwsC= lasses/OcwCleanDirectory.java AxisFault faultCode: {http://xml.apache.org/axis/}Server.compileError faultSubcode:=20 faultString: Error while compiling: = /data/jakarta_tomcat_4.0.6/jakarta-tomcat-4.0.6/webapps/axis/WEB-INF/jwsC= lasses/OcwCleanDirectory.java faultActor:=20 faultNode:=20 faultDetail:=20 {}Errors:Error compiling = /data/jakarta_tomcat_4.0.6/jakarta-tomcat-4.0.6/webapps/axis/WEB-INF/jwsC= lasses/OcwCleanDirectory.java: Line 0, column 0: could not parse error message: Note: = sun.tools.javac.Main has been deprecated. /data/jakarta_tomcat_4.0.6/jakarta-tomcat-4.0.6/webapps/axis/WEB-INF/jwsC= lasses/OcwCleanDirectory.java:17: Package Common not found in import. import Common.*; How can we solve this problem? Any help will be greatly appreciated. Thanks and regards Neelam Bhatnagar =A0 -----Original Message----- From: Anne Thomas Manes [mailto:atmanes@gmail.com]=20 Sent: Thursday, July 07, 2005 8:41 PM To: axis-user Subject: Re: Error seen on BizTalk client request to my web service There's an error in this WSDL. When I validate it with the Cape Clear SOA Editor, I get the following errors: Warning : 1004 : There is no schema component of the name [ProvidentResponse] defined in the WSDL either via imported or embedded schema. Warning : 1003 : WSDLException: faultCode=3DPARSER_ERROR: failed parsing schemas into object model - validation error: missing prefix mapping for value 'tns1:ProvidentResponse' in attribute type: /wsdl:definitions/wsdl:types/schema/element[1]/complexType/sequence/eleme= nt: validation error: missing prefix mapping for value 'tns1:ProvidentResponse' in attribute type: /wsdl:definitions/wsdl:types/schema/element[1]/complexType/sequence/eleme= nt Anne On 7/7/05, Patrick Quinn wrote: > Hi Anne >=20 > Below is the WSDL found at: > = http://192.168.1.150:8880/axis/services/ProvidentConnector_ProvidentRece > iver_ProvidentWSPortSoap?WSDL >=20 > Patrick >=20 >=20 >=20 >=20 > > - xmlns:apachesoap=3D"http://xml.apache.org/xml-soap" > xmlns:impl=3D"http://namespace.accenture.com/" > xmlns:intf=3D"http://namespace.accenture.com/" > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/" > xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/" > xmlns:wsdlsoap=3D"http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"> > - > - xmlns=3D"http://www.w3.org/2001/XMLSchema"> > - > - > - > > > > > - > - > - > > > > > > > - > > > - > > > - name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"> > - > name=3D"SOPResponseRequest" /> > name=3D"SOPResponseResponse" /> > > > - = name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoapSoapBindi= n > g" = type=3D"impl:ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"> > transport=3D"http://schemas.xmlsoap.org/soap/http" /> > - > = soapAction=3D"http://namespace.accenture.com/ProvidentConnector_Provident= R > eceiver_ProvidentWSPort/SOPResponse" /> > - > use=3D"literal" /> > > - > use=3D"literal" /> > > > > - name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPort"> > - = binding=3D"impl:ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoapS= o > apBinding" > name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"> > = location=3D"http://192.168.1.150:8880/axis/services/ProvidentConnector_Pr= o > videntReceiver_ProvidentWSPortSoap" /> > > > >=20 >=20 >=20 > -----Original Message----- > From: Anne Thomas Manes [mailto:atmanes@gmail.com] > Sent: 07 July 2005 14:57 > To: axis-user@ws.apache.org > Subject: Re: Error seen on BizTalk client request to my web service >=20 >=20 > Patrick, >=20 > This obviously isn't the WSDL file for your test Axis service. Because > that WSDL file will specify the correct location URI. Please send me = the > WSDL that you obtain by adding the ?wsdl to the location URI. >=20 > Anne >=20 > On 7/7/05, Patrick Quinn wrote: > > Hi Anne > > > > The client soap request, client code, error message, WSDL, and WSDD > > are > > below: > > > > Thanks > > > > Pat > > > > *CLIENT SOAP REQUEST* > > > > > > > xmlsn:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > > > > nsl:ProvidentResponse > > xmlns:nsl=3D"http://ProvidentConnector.ProvidentResponseToOrch"> > > 1 > > 2 > > blank > > 0 > > > > > > > > > > > > > > *client code* > > > > > > = com.accenture.namespace.ProvidentConnector_ProvidentReceiver_Provident > > WS > > Port wsPort =3D new > > > = com.accenture.namespace.ProvidentConnector_ProvidentReceiver_ProvidentWS > > PortLocator(); > > > > ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap pt =3D > > = wsPort.getProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap(ser > > vi > > ceURL); > > > > Where serviceURL is configurable, and set currently to: > > = http://192.168.1.150:8880/axis/services/ProvidentConnector_ProvidentRe > > ce > > iver_ProvidentWSPortSoap > > > > > > > > *error* > > > > > > ERROR!!!!org.xml.sax.SAXException: Deserializing parameter > > 'ProvidentResponse': could not find deserializer for type > > {http://ProvidentConnector.ProvidentResponseToOrch}ProvidentResponse > > > > > > *WSDD file* > > > > > xmlns=3D"http://xml.apache.org/axis/wsdd/" > > xmlns:java=3D"http://xml.apache.org/axis/wsdd/providers/java"> > > > > > > > > > name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap" > > provider=3D"java:RPC" style=3D"wrapped" use=3D"literal"> > > > value=3D"http://namespace.accenture.com/"/> > > > value=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPort"/> > > > = value=3D"http://ProvidentConnector.ProvidentResponseToOrch,http://namesp > > ac > > e.accenture.com/"/> > > > value=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"/> > > > > = value=3D"com.accenture.namespace.ProvidentConnector_ProvidentReceiver_Pro= v > > identWSPortSoapSkeleton"/> > > > value=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"/> > > > > > > > > > = xmlns:ns=3D"http://ProvidentConnector.ProvidentResponseToOrch" > > qname=3D"ns:ProvidentResponse" > > > > > = type=3D"java:ProvidentResponseToOrch.ProvidentConnector.ProvidentResponse= " > > = serializer=3D"org.apache.axis.encoding.ser.BeanSerializerFactory" > > > > = deserializer=3D"org.apache.axis.encoding.ser.BeanDeserializerFactory" > > encodingStyle=3D"" > > /> > > > > > > > > > > > > > > * WSDL file * > > > > > > > xmlns:s1=3D"http://ProvidentConnector.ProvidentResponseToOrch" > > xmlns:http=3D"http://schemas.xmlsoap.org/wsdl/http/" > > xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns:s=3D"http://www.w3.org/2001/XMLSchema" > > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:tns=3D"http://namespace.accenture.com/" > > xmlns:tm=3D"http://microsoft.com/wsdl/mime/textM > > atching/" xmlns:mime=3D"http://schemas.xmlsoap.org/wsdl/mime/" > > targetNamespace=3D"http://namespace.accenture.com/" > > xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"> > > > > > targetNamespace=3D"http://namespace.accenture.com/"> > > > namespace=3D"http://ProvidentConnector.ProvidentResponseToOrch" /> > > > > > > > > > ref=3D"s1:ProvidentResponse" /> > > > > > > > > > > > > > > > type=3D"s:string" /> > > > > > > > > > > > = targetNamespace=3D"http://ProvidentConnector.ProvidentResponseToOrch"> > > /> > > > > > > > name=3D"REQUESTID" type=3D"s:string" /> > > > name=3D"SO_RESULT_CODE" type=3D"s:string" /> > > > name=3D"SO_PROV_DATE" type=3D"s:string" /> > > > name=3D"SO_ERR_DESC" type=3D"s:string" /> > > > name=3D"XML_SORESULT" type=3D"s:string" /> > > > > > > > > > > > > > > > > > > > name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"> > > > > > > > > > > > > > name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap" > > = type=3D"tns:ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"> > > > style=3D"document" /> > > > > > > = soapAction=3D"http://namespace.accenture.com/ProvidentConnector_Provident= R > > eceiver_ProvidentWSPort/SOPResponse" style=3D"document" /> > > > > > > > > > > > > > > > > > > > name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPort"> > > BizTalk > > assembly "ProvidentConnector, Version=3D1.0.0.0, Culture=3Dneutral, > > PublicKeyToken=3Dae7c9e263f196bff" published web > service. > > > name=3D"ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap" > > > = binding=3D"tns:ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap">= > > > = location=3D"http://localhost/ProvidentConnector/ProvidentWSPort.asmx" /> > > > > > > > > > > This e-mail and any attachments may be confidential and/or legally > > privileged. If you have received this e-mail and you are not a named > > addressee, please inform Evolving Systems TIS at tis@evolving.com = and > > then delete the e-mail from your system. If you are not a named > > addressee you must not use, disclose, distribute, copy, print or = rely > > on this e-mail. To ensure regulatory compliance and for the = protection >=20 > > of our clients and business, Evolving Systems may monitor and read > > e-mails sent to and from its servers. Although Evolving Systems > > routinely screens for viruses, addressees should scan this e-mail = and > > any attachments for viruses. Evolving Systems makes no = representation > > or warranty as to the absence of viruses in this e-mail or any > > attachments. > > > > Registered Office: One Angel Square, Torrents Street, London. EC1V > > 1PL. Registered number 2325854 > > > This e-mail and any attachments may be confidential and/or legally = privileged. If you have received this e-mail and you are not a named = addressee, please inform Evolving Systems TIS at tis@evolving.com and = then delete the e-mail from your system. If you are not a named = addressee you must not use, disclose, distribute, copy, print or rely on = this e-mail. To ensure regulatory compliance and for the protection of = our clients and business, Evolving Systems may monitor and read e-mails = sent to and from its servers. Although Evolving Systems routinely = screens for viruses, addressees should scan this e-mail and any = attachments for viruses. Evolving Systems makes no representation or = warranty as to the absence of viruses in this e-mail or any attachments. >=20 > Registered Office: One Angel Square, Torrents Street, London. EC1V = 1PL. Registered number 2325854 >