If you need an absolute URI in there you can try saving the WSDL to your hard disk, Update it manually to have an absolute URI and then add it to the META-INF folder of your aar. Also add the parameter useOriginalWSDL="true" to your services.xml.
Thanks, Keith. On Jan 16, 2008 5:18 AM, prasad c iyer <[EMAIL PROTECTED]> wrote: > > > I did used WSDL2Java tool. > What I'm trying to do is consume the service using PHP. But when I query the > WSDL file it returns me the following schema location. > > I don't think it takes care of this. > regards > > > > > > > > ----- Original Message ----- > From: Amila Suriarachchi > To: [email protected] > Sent: Monday, January 14, 2008 8:04 PM > Subject: Re: WSDL import and schemaLocation > > > > > On Jan 15, 2008 9:08 AM, prasad c iyer <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > I am creating the client for an existing web service. My problem is the > schemaLocation is points to the relative path. Is there a way to resolve > this. So that my client can download the schema. > > > Are you using wsdl2java with Axis2? it can handle the relative > schemaLocations. I think any tool would do this. > > thanks, > Amila. > > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > <definitions name="BankServices" > targetNamespace="http://localhost:8080/my-app/services/BankServices " > xmlns="http://schemas.xmlsoap.org/wsdl/" > xmlns:tns="http://localhost:8080/my-app/services/BankServices" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:bank="http://localhost:8080/my-app/services/BankServices/types" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> > > <types> > > <xsd:schema> > > <xsd:import > namespace="http://localhost:8080/my-app/services/BankServices/types" > schemaLocation="BankServices?xsd=xsd0.xsd"/> > > </xsd:schema> > > </types> > > > > > > > > regards > > > > > > -- > Amila Suriarachchi, > WSO2 Inc. -- Keith Chapman Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
