- This topic has 5 replies, 2 voices, and was last updated 16 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
Frank LawlorParticipantWhen 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 ———————
<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>
Riyad KallaMemberflawlor,
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?
Frank LawlorParticipantYes 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?
Riyad KallaMemberThe JAX-WS Web Service and Client Doc is here:
http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxwsalso 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.
Frank LawlorParticipantThanks for the pointer to the doc.
I tried it out and it works well.
I appreciate your help.
Riyad KallaMemberNot a problem, glad it helped.
-
AuthorPosts