| Author |
Message |
|
|
Post subject: components from this namespace are not referenceable from sc
Posted: Aug 18, 2008 - 08:31 PM
|
|
Registered Member


Joined: Jul 01, 2006
Posts: 19
|
|
When I try to use the wizard to create a WS client from the XFire generated web service by pointing at the wsdl URL I get the error "components from this namespace are not referenceable from schema document ..."
This may be a known problem: http://www.mail-archive.com/axis-dev@ws.apache.org/msg39724.html
Since the wizards and XFire are generating all the WSDL, I have no control (that I'm aware of) over the content.
This problem seems to be due to the fact that my WS request class references a couple of classes which are defined in one of my library files and are being given a different namespace.
I get the above errors on the lines with the namesapce lables ns1, ns2 and ns3
-------------- WSDL ---------------------
| Code: |
<wsdl:definitions targetNamespace="http://OrderCashCard.request.socketpcws.netspend.com">
<wsdl:types>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://OrderCashCard.request.socketpcws.netspend.com">
<xsd:complexType name="OrderCashCardRequest">
<xsd:sequence>
<xsd:element minOccurs="0" name="DOB" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="DOBasDate" type="xsd:dateTime"/>
<xsd:element minOccurs="0" name="accountIdentifier" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="addressData" nillable="true" type="ns1:AddressData"/> <**** ERROR ***>
<xsd:element minOccurs="0" name="amount" type="xsd:int"/>
<xsd:element minOccurs="0" name="city" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="country" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="currency" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="email" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="firstName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="govtIdType" type="xsd:int"/>
<xsd:element minOccurs="0" name="govtIdValue" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="lastName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="line1" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="line2" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="middleInitial" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="otherType" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="partnerCustomerId" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="phoneNumber" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="reference" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="state" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="stationId" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="storeId" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="track2data" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="transactionInfo" nillable="true" type="ns2:TransactionInfo"/> <**** ERROR ***>
<xsd:element minOccurs="0" name="zip" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="orderCashCard">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="tns:OrderCashCardRequest"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="OrderCashCardResponse">
<xsd:sequence>
<xsd:element minOccurs="0" name="alertActivated" type="xsd:int"/>
<xsd:element minOccurs="0" name="availableBalance" type="xsd:int"/>
<xsd:element minOccurs="0" name="cardOrderStatus" type="xsd:int"/>
<xsd:element minOccurs="0" name="cashNumber" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="errorCode" type="xsd:int"/>
<xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="reference" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="orderCashCardResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="tns:OrderCashCardResponse"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://portal.session.core.neo.netspend.com">
<xsd:complexType name="TransactionInfo">
<xsd:sequence>
<xsd:element minOccurs="0" name="stationId" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="storeId" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="tranId" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://locale.core.neo.netspend.com">
<xsd:complexType name="AddressData">
<xsd:sequence>
<xsd:element minOccurs="0" name="city" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="contactName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="country" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="id" nillable="true" type="ns3:PrimaryKey"/> <**** ERROR ***>
<xsd:element minOccurs="0" name="latitude" type="xsd:double"/>
<xsd:element minOccurs="0" name="line1" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="line2" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="longitude" type="xsd:double"/>
<xsd:element minOccurs="0" name="modifiedDate" type="xsd:dateTime"/>
<xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="phoneNumber" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="state" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="zip" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://util.core.neo.netspend.com">
<xsd:complexType name="PrimaryKey">
<xsd:sequence>
<xsd:element minOccurs="0" name="key" nillable="true" type="xsd:anyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="orderCashCardRequest">
<wsdl:part name="parameters" element="tns:orderCashCard">
</wsdl:part>
</wsdl:message>
<wsdl:message name="orderCashCardResponse">
<wsdl:part name="parameters" element="tns:orderCashCardResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="OrderCashCardPortType">
<wsdl:operation name="orderCashCard">
<wsdl:input name="orderCashCardRequest" message="tns:orderCashCardRequest">
</wsdl:input>
<wsdl:output name="orderCashCardResponse" message="tns:orderCashCardResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="OrderCashCardHttpBinding" type="tns:OrderCashCardPortType">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="orderCashCard">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="orderCashCardRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="orderCashCardResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="OrderCashCard">
<wsdl:port name="OrderCashCardHttpPort" binding="tns:OrderCashCardHttpBinding">
<wsdlsoap:address location="http://localhost:8081/WsSocketPC/services/OrderCashCard"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions> |
|
|
|
| |
|
|
|
 |
|
|
Post subject: RE: components from this namespace are not referenceable fro
Posted: Aug 19, 2008 - 05:58 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23305
|
|
flawlor,
Unfortunately Xfire support has been deprecated moving forward as the project is now defunct. All of the web services functionality will be structured around the industry standard JAX-WS web service spec moving forward. Is there a possibility that you could re-develop/deploy the app as a JAX-WS web service or is that out of the question? |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 19, 2008 - 06:50 PM
|
|
Registered Member


Joined: Jul 01, 2006
Posts: 19
|
|
Yes I could look at JAX-WS approach.
I did try to generate a project with that and noticed that it doen't seem to provide the automatic WSDL generation like Xfire. The Help page still shows the XFire approach.
Is the some documentation on the JAX-WS approach, esp. regarding WDSL? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 19, 2008 - 08:36 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23305
|
|
The JAX-WS Web Service and Client Doc is here:
http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws
also when you are generating the Web Service, one of the check boxes on the last page is "Create a copy of WSDL in project" or something to that effect, it will generate the WSDL to WEB-INF/wsdl for you. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 19, 2008 - 10:25 PM
|
|
Registered Member


Joined: Jul 01, 2006
Posts: 19
|
|
Thanks for the pointer to the doc.
I tried it out and it works well.
I appreciate your help. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 20, 2008 - 12:50 AM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23305
|
|
| Not a problem, glad it helped. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|