WSR attributes in WSDL
Hi,
Looking at the WSDL generated by WLS 8.1, I found this definition "xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/".
I cannot find any explication on it and what is really about (reliability, I think...).
Is there some documentation on this? Is it a standard?
Thanks,
Charles
Check this out:
http://edocs.bea.com/wls/docs81/webserv/reliable.html
Regards,
-manoj
http://manojc.com
"Charles Desmoulins" <[email protected]> wrote in message
news:[email protected]..
>
Hi,
Looking at the WSDL generated by WLS 8.1, I found this definition"xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/".
>
I cannot find any explication on it and what is really about (reliability,I think...).
>
Is there some documentation on this? Is it a standard?
Thanks,
Charles
Similar Messages
-
Error from wsdl in java studio
Hi folks,
I'm trying to create a web service with Java Studio Enterprise from a wsdl file but it throw me this error:
"error: in message "MessageRichiestaDaWccATtm", part "arg1" must specify a "type" attribute.
The wsdl fie is validated by XmlSpy and I'm able to generate java classes with Axis, but I want generate all classes with Java Studio.
Can anyone help me?
Thank you very much.
This is the wsdl file :
<wsdl:definitions targetNamespace="http://www.your-company.com/totale.wsdl" xmlns:tns="http://www.your-company.com/totale.wsdl" name="totale" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema targetNamespace="http://www.your-company.com/totale.wsdl">
<xsd:element name="richiestaDaWccATtm" type="tns:richiestaDaWccATtmType"/>
<xsd:element name="rispostaDaTtmAWcc" type="tns:rispostaDaTtmAWccType"/>
<xsd:complexType name="richiestaDaWccATtmType">
<xsd:choice>
<xsd:element name="letturaListaClienti" type="tns:IdCliente"/>
<xsd:element name="letturaListaOperatori" type="tns:IdCliente"/>
<xsd:element name="letturaProfiloCliente" type="tns:IdCliente"/>
<xsd:element name="letturaAnagrafica" type="tns:SelezioneEntitaCliente"/>
<xsd:element name="aperturaPreReclamo" type="tns:AperturaPreReclamo"/>
<xsd:element name="annullamentoReclamo" type="tns:RichiestaSuReclamo"/>
<xsd:element name="inserimentoMemoCliente" type="tns:InserimentoMemoCliente"/>
<xsd:element name="variazioneCriticita" type="tns:VariazioneCriticita"/>
<xsd:element name="letturaCronologia" type="tns:IdReclamo"/>
<xsd:element name="rifiutoChiusura" type="tns:RifiutoChiusura"/>
<xsd:element name="accettazioneChiusura" type="tns:AccettazioneChiusura"/>
<xsd:element name="ricercaReclami" type="tns:RicercaReclami"/>
<xsd:element name="letturaReclamo" type="tns:IdReclamo"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="rispostaDaTtmAWccType">
<xsd:choice>
<xsd:element name="ackDaTtmAWcc" type="tns:AckDaTtmAWcc"/>
<xsd:element name="nackDaTtmAWcc" type="tns:NackDaTtmAWcc"/>
</xsd:choice>
</xsd:complexType>
<xsd:simpleType name="nomeReclamanteType1">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="telefonoReclamanteType">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="14"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="idEntitaType1">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="noteReclamanteType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="100"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizioneAttivitaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="100"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="AperturaPreReclamo">
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="idOperatore" type="tns:IdOperatore"/>
<xsd:element name="nomeReclamante" type="tns:nomeReclamanteType1"/>
<xsd:element name="telefonoReclamante" type="tns:telefonoReclamanteType"/>
<xsd:element name="emailReclamante" type="tns:Email"/>
<xsd:element name="codTipologiaEntita" type="tns:CodTipologiaEntita"/>
<xsd:element name="idEntita" type="tns:idEntitaType1"/>
<xsd:element name="codSede" type="tns:CodSede"/>
<xsd:element name="sdf" type="tns:CodSdf"/>
<xsd:element name="noteReclamante" type="tns:noteReclamanteType"/>
<xsd:element name="descrizioneAttivita" type="tns:descrizioneAttivitaType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="singolaMemoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="400"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="InserimentoMemoCliente">
<xsd:complexContent>
<xsd:extension base="tns:RichiestaSuReclamo">
<xsd:sequence>
<xsd:element name="singolaMemo" type="tns:singolaMemoType"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="VariazioneCriticita">
<xsd:complexContent>
<xsd:extension base="tns:RichiestaSuReclamo">
<xsd:sequence>
<xsd:element name="sdf" type="tns:CodSdf"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="progressivoType">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="10"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="RifiutoChiusura">
<xsd:complexContent>
<xsd:restriction base="tns:AccettazioneChiusura">
<xsd:sequence>
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="anno" type="xsd:gYear"/>
<xsd:element name="progressivo" type="tns:progressivoType"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="idOperatore" type="tns:IdOperatore"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="note" type="tns:NoteChiusura"/>
</xsd:sequence>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AccettazioneChiusura">
<xsd:complexContent>
<xsd:extension base="tns:RichiestaSuReclamo">
<xsd:sequence>
<xsd:element name="note" type="tns:NoteChiusura" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="statiType">
<xsd:sequence maxOccurs="unbounded">
<xsd:element name="Stato" type="tns:Stato"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="nomeReclamanteType2">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="RicercaReclami">
<xsd:complexContent>
<xsd:extension base="tns:SelezioneEntitaCliente">
<xsd:sequence>
<xsd:element name="includiCreatiPrereclami" type="xsd:boolean"/>
<xsd:element name="includiCreatiReclamo" type="xsd:boolean"/>
<xsd:element name="includiCreatiAllarme" type="xsd:boolean"/>
<xsd:element name="stati" type="tns:statiType" minOccurs="0"/>
<xsd:element name="nomeReclamante" type="tns:nomeReclamanteType2" minOccurs="0"/>
<xsd:element name="sdf" type="tns:CodSdf" minOccurs="0"/>
<xsd:element name="dataOraInizioSegnalazioneDa" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="dataOraInizioSegnalazioneA" type="xsd:dateTime" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="RichiestaSuReclamo">
<xsd:complexContent>
<xsd:extension base="tns:IdReclamo">
<xsd:sequence>
<xsd:element name="idOperatore" type="tns:IdOperatore"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="descrSedeType">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrTipologiaEntitaType">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="128"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="idEntitaType2">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="SelezioneEntitaCliente">
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="codSede" type="tns:CodSede" minOccurs="0"/>
<xsd:element name="descrSede" type="tns:descrSedeType" minOccurs="0"/>
<xsd:element name="codTipologiaEntita" type="tns:CodTipologiaEntita" minOccurs="0"/>
<xsd:element name="descrTipologiaEntita" type="tns:descrTipologiaEntitaType" minOccurs="0"/>
<xsd:element name="idEntita" type="tns:idEntitaType2" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AckDaTtmAWcc">
<xsd:choice>
<xsd:element name="rispostaLetturaListaClienti" type="tns:RispostaLetturaListaClienti"/>
<xsd:element name="rispostaLetturaListaOperatori" type="tns:RispostaLetturaListaOperatori"/>
<xsd:element name="rispostaLetturaProfiloCliente" type="tns:RispostaLetturaProfiloCliente"/>
<xsd:element name="rispostaLetturaAnagrafica" type="tns:RispostaLetturaAnagrafica"/>
<xsd:element name="rispostaAperturaPreReclamo" type="tns:RispostaAperturaPreReclamo"/>
<xsd:element name="rispostaAnnullamentoReclamo" type="tns:Ack"/>
<xsd:element name="rispostaInserimentoMemoCliente" type="tns:Ack"/>
<xsd:element name="rispostaVariazioneCriticita" type="tns:Ack"/>
<xsd:element name="rispostaLetturaCronologia" type="tns:RispostaLetturaCronologia"/>
<xsd:element name="rispostaRifiutoChiusura" type="tns:Ack"/>
<xsd:element name="rispostaAccettazioneChiusura" type="tns:Ack"/>
<xsd:element name="rispostaRicercaReclami" type="tns:RispostaRicercaReclami"/>
<xsd:element name="rispostaLetturaReclamo" type="tns:RispostaLetturaReclamo"/>
</xsd:choice>
</xsd:complexType>
<xsd:simpleType name="problemaType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="CLI_ERR"/>
<xsd:enumeration value="CAT_CLI_ERR"/>
<xsd:enumeration value="OP_ERR"/>
<xsd:enumeration value="CLI_NO_ABI"/>
<xsd:enumeration value="IMP_ERR"/>
<xsd:enumeration value="DATI_ERR"/>
<xsd:enumeration value="OP_SU_RECL_NON_AMM"/>
<xsd:enumeration value="REC_ERR"/>
<xsd:enumeration value="CONN_DB_ESA"/>
<xsd:enumeration value="NO_DB"/>
<xsd:enumeration value="TTM_ERR"/>
<xsd:enumeration value="NO_XML"/>
<xsd:enumeration value="XML_ERR"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="dettaglioType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="300"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="NackDaTtmAWcc">
<xsd:sequence>
<xsd:element name="problema" type="tns:problemaType"/>
<xsd:element name="dettaglio" type="tns:dettaglioType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="codiceFiscaleType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="16"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="cittaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="indirizzoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="capType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="provinciaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="referenteType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="telefonoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="14"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="faxType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="14"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="emailType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="categoriaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizione50Type">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizione128Type">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="128"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="sdfType">
<xsd:sequence>
<xsd:element name="codice" type="tns:CodSdf"/>
<xsd:element name="descrizione" type="tns:descrizione50Type"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="tipologiaEntitaType">
<xsd:sequence>
<xsd:element name="codice" type="tns:CodTipologiaEntita"/>
<xsd:element name="descrizione" type="tns:descrizione128Type"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaProfiloCliente">
<xsd:sequence>
<xsd:element name="ragioneSociale" type="tns:RagioneSociale"/>
<xsd:element name="codiceFiscale" type="tns:codiceFiscaleType" minOccurs="0"/>
<xsd:element name="citta" type="tns:cittaType" minOccurs="0"/>
<xsd:element name="indirizzo" type="tns:indirizzoType" minOccurs="0"/>
<xsd:element name="cap" type="tns:capType" minOccurs="0"/>
<xsd:element name="provincia" type="tns:provinciaType" minOccurs="0"/>
<xsd:element name="referente" type="tns:referenteType" minOccurs="0"/>
<xsd:element name="telefono" type="tns:telefonoType" minOccurs="0"/>
<xsd:element name="fax" type="tns:faxType" minOccurs="0"/>
<xsd:element name="email" type="tns:emailType" minOccurs="0"/>
<xsd:element name="soglia1" type="tns:Soglia"/>
<xsd:element name="soglia2" type="tns:Soglia"/>
<xsd:element name="soglia3" type="tns:Soglia"/>
<xsd:element name="flagStoriaGuasto" type="xsd:boolean"/>
<xsd:element name="flagConfermaChiusura" type="xsd:boolean"/>
<xsd:element name="flagVariazioneCriticita" type="xsd:boolean"/>
<xsd:element name="flagInglese" type="xsd:boolean"/>
<xsd:element name="categoria" type="tns:categoriaType" minOccurs="0"/>
<xsd:element name="sdf" type="tns:sdfType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="tipologiaEntita" type="tns:tipologiaEntitaType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="entitaType">
<xsd:sequence>
<xsd:element name="idEntita" type="tns:IdEntita"/>
<xsd:element name="tipologiaEntita" type="tns:CodTipologiaEntita"/>
<xsd:element name="sede" type="tns:Sede"/>
<xsd:element name="sede2" type="tns:Sede" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaAnagrafica">
<xsd:sequence>
<xsd:element name="entita" type="tns:entitaType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="flagRisultatoParziale" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaAperturaPreReclamo">
<xsd:complexContent>
<xsd:extension base="tns:IdReclamo">
<xsd:sequence>
<xsd:element name="dataOraSegnalazione" type="xsd:dateTime"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="variazioneStatoType">
<xsd:complexContent>
<xsd:extension base="tns:VariazioneReclamo">
<xsd:sequence>
<xsd:element name="stato" type="tns:Stato"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaCronologia">
<xsd:sequence>
<xsd:element name="variazioneStato" type="tns:variazioneStatoType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaRicercaReclami">
<xsd:sequence>
<xsd:element name="reclamo" type="tns:Reclamo" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="flagRisultatoParziale" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaReclamo">
<xsd:complexContent>
<xsd:extension base="tns:Reclamo">
<xsd:sequence>
<xsd:element name="memo" type="tns:Memo" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="idType">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="5"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="operatoreWebType">
<xsd:sequence>
<xsd:element name="id" type="tns:idType"/>
<xsd:element name="descrizione" type="tns:DescrizioneOperatore"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaListaOperatori">
<xsd:sequence>
<xsd:element name="operatoreWeb" type="tns:operatoreWebType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="clienteType">
<xsd:sequence>
<xsd:element name="id" type="tns:IdCliente"/>
<xsd:element name="ragioneSociale" type="tns:RagioneSociale"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaListaClienti">
<xsd:sequence>
<xsd:element name="cliente" type="tns:clienteType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="VariazioneReclamo">
<xsd:sequence>
<xsd:element name="dataVariazione" type="xsd:dateTime"/>
<xsd:element name="operatore" type="tns:DescrizioneOperatore" minOccurs="0"/>
<xsd:element name="flagVariazioneTramiteWeb" type="xsd:boolean" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Memo">
<xsd:complexContent>
<xsd:extension base="tns:VariazioneReclamo">
<xsd:sequence>
<xsd:element name="singolaMemo" type="tns:singolaMemoType"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="codMalfunzionamentoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="noteChiusuraType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="140"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizioneRiparazioneType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="tipoAperturaType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Reclamo"/>
<xsd:enumeration value="PreReclamo"/>
<xsd:enumeration value="Allarme"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="modalitaAperturaType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Manuale"/>
<xsd:enumeration value="Automatica"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="tipoType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="SISU"/>
<xsd:enumeration value="SCON"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="tempoType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Risposta"/>
<xsd:enumeration value="Intervento"/>
<xsd:enumeration value="Ripristino"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="noteType" >
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="sospensioneType">
<xsd:sequence>
<xsd:element name="tipo" type="tns:tipoType"/>
<xsd:element name="tempo" type="tns:tempoType"/>
<xsd:element name="inizio" type="xsd:dateTime"/>
<xsd:element name="fine" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="noteType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Reclamo">
<xsd:sequence>
<xsd:element name="idReclamo" type="tns:IdReclamo"/>
<xsd:element name="creatoDa" type="tns:DescrizioneOperatore"/>
<xsd:element name="nomeReclamante" type="tns:nomeReclamanteType1"/>
<xsd:element name="telefonoReclamante" type="tns:telefonoReclamanteType"/>
<xsd:element name="emailReclamante" type="tns:Email" minOccurs="0"/>
<xsd:element name="sede" type="tns:Sede"/>
<xsd:element name="tipologiaEntita" type="tns:CodTipologiaEntita"/>
<xsd:element name="idEntita" type="tns:IdEntita"/>
<xsd:element name="sdf" type="tns:CodSdf"/>
<xsd:element name="stato" type="tns:Stato"/>
<xsd:element name="operatore" type="tns:DescrizioneOperatore" minOccurs="0"/>
<xsd:element name="dataOraSegnalazione" type="xsd:dateTime"/>
<xsd:element name="dataOraChiusura" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="codMalfunzionamento" type="tns:codMalfunzionamentoType" minOccurs="0"/>
<xsd:element name="noteChiusura" type="tns:noteChiusuraType" minOccurs="0"/>
<xsd:element name="noteReclamante" type="tns:noteReclamanteType" minOccurs="0"/>
<xsd:element name="descrizioneRiparazione" type="tns:descrizioneRiparazioneType" minOccurs="0"/>
<xsd:element name="flagMemoClientiEsistenti" type="xsd:boolean"/>
<xsd:element name="flagConRiserva" type="xsd:boolean"/>
<xsd:element name="tipoApertura" type="tns:tipoAperturaType"/>
<xsd:element name="modalitaApertura" type="tns:modalitaAperturaType"/>
<xsd:element name="sospensione" type="tns:sospensioneType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="codiceType">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="8"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizioneType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="Sede">
<xsd:sequence>
<xsd:element name="codice" type="tns:codiceType"/>
<xsd:element name="descrizione" type="tns:descrizioneType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="IdReclamo">
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="anno" type="xsd:gYear"/>
<xsd:element name="progressivo" type="tns:progressivoType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="CampoRicercaLike">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="IdOperatore">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="5"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CodSede">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="8"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="NoteChiusura">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="140"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Ack">
<xsd:restriction base="xsd:dateTime"/>
</xsd:simpleType>
<xsd:simpleType name="DescrizioneOperatore">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="RagioneSociale">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="150"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Soglia">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="IdEntita">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="IdCliente">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="15" fixed="true"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Stato">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Accettato"/>
<xsd:enumeration value="Annullato"/>
<xsd:enumeration value="Chiuso"/>
<xsd:enumeration value="In lavorazione"/>
<xsd:enumeration value="Preso in carico"/>
<xsd:enumeration value="Proposto in chiusura"/>
<xsd:enumeration value="Rifiutato"/>
<xsd:enumeration value="In coda"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CodTipologiaEntita">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="5"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CodSdf">
<xsd:restriction base="xsd:byte">
<xsd:minInclusive value="-1"/>
<xsd:maxInclusive value="100"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Email">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
<xsd:pattern value="[^\s@]+@[^\s@]+\.[^\s@]+"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="MessageRichiestaDaWccATtm">
<wsdl:part name="arg1" element="tns:richiestaDaWccATtm"/>
</wsdl:message>
<wsdl:message name="MessageRispostaDaTtmAWcc">
<wsdl:part name="arg1" element="tns:rispostaDaTtmAWcc"/>
</wsdl:message>
<wsdl:portType name="totalePortType">
<wsdl:operation name="richiestaServizio">
<wsdl:input message="tns:MessageRichiestaDaWccATtm" name="messageInput"/>
<wsdl:output message="tns:MessageRispostaDaTtmAWcc" name="messageOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TtmBinding" type="tns:totalePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="richiestaServizio">
<soap:operation soapAction="" style="rpc"/>
<wsdl:input name="messageInput">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.your-company.com/totale.wsdl"/>
</wsdl:input>
<wsdl:output name="messageOutput">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.your-company.com/totale.wsdl"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TTM">
<wsdl:port binding="tns:TtmBinding" name="TtmBindingPort">
<soap:address location="http://localhost:8080/axis/services/TtmBindingPort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>This is an RPC/encoded web service. In such a service the parts of a message must have a type attribute,
not element attributes.
<wsdl:message name="MessageRichiestaDaWccATtm">
<wsdl:part name="arg1" element="tns:richiestaDaWccATtm"/>
</wsdl:message>
<wsdl:message name="MessageRispostaDaTtmAWcc">
<wsdl:part name="arg1" element="tns:rispostaDaTtmAWcc"/>
</wsdl:message>
these should be something like:
<wsdl:message name="MessageRichiestaDaWccATtm">
<wsdl:part name="arg1" type="tns:richiestaDaWccATtmType"/>
</wsdl:message>
<wsdl:message name="MessageRispostaDaTtmAWcc">
<wsdl:part name="arg1" type="tns:rispostaDaTtmAWccType"/>
</wsdl:message>
I should not that the schema in this WSDL include xsd:choice so you are likely to get an error or have
the schema fragments bound to a SOAPElement.
In JAXRPC 2.0 due out next year choice will have better binding. -
Error in generating .cs file from wsdl
hi ,
I am trying to generate .cs file from wsdl using commond
wsdl
http://pni3w274:8080/tc5_services/WebServices/ModelEntity?wsdl /language:CS /out:rt.cs /protocol:SOAP
it give following errors
Error: Unable to import binding 'ModelEntitySoapBinding' from namespace 'http://
teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity'.
- Unable to import operation 'getListOfClasses'.
- The datatype 'http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelE
ntity:GetListOfClassesInputParams' is missing.
my wsdl is
ModelEntityService.wsdl
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions
targetNamespace="http://teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/"
xmlns:imp0="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
xmlns:imp1="http://teamcenter.com/webservices/2005-06/schemas/WSFaults"
xmlns:tns="http://teamcenter.com/TCENT/webservices/2005-06/services/ModelEntity">
<wsdl:documentation>
The service provides Model Entity related operation.
</wsdl:documentation>
<wsdl:types>
<xs:schema>
<xs:import namespace="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity" schemaLocation="ModelEntity.xsd" />
<xs:import namespace="http://teamcenter.com/webservices/2005-06/schemas/WSFaults" schemaLocation="WSFaults.xsd" />
</xs:schema>
</wsdl:types>
<wsdl:message name="PresentationTierFault">
<wsdl:part name="ex0" element="imp1:RequestManangerFault" />
</wsdl:message>
<wsdl:message name="getListOfClassesRequest">
<wsdl:part name="in0" element="imp0:GetListOfClassesInputParams" />
</wsdl:message>
<wsdl:message name="getListOfClassesResponse">
<wsdl:part name="out" element="imp0:GetListOfClassesOutputParams" />
</wsdl:message>
<wsdl:message name="getCreateAttributesRequest">
<wsdl:part name="in0" element="imp0:GetCreateAttributesInputParams" />
</wsdl:message>
<wsdl:message name="getCreateAttributesResponse">
<wsdl:part name="out" element="imp0:GetCreateAttributesOutputParams" />
</wsdl:message>
<wsdl:message name="createModelEntityRequest">
<wsdl:part name="in0" element="imp0:CreateModelEntityInputParams" />
</wsdl:message>
<wsdl:message name="createModelEntityResponse">
<wsdl:part name="out" element="imp0:CreateModelEntityOutputParams" />
</wsdl:message>
<wsdl:message name="getValueSetForAttributeRequest">
<wsdl:part name="in0" element="imp0:GetValueSetForAttributeInputParams" />
</wsdl:message>
<wsdl:message name="getValueSetForAttributeResponse">
<wsdl:part name="out" element="imp0:GetValueSetForAttributeOutputParams" />
</wsdl:message>
<wsdl:portType name="ModelEntity">
<wsdl:operation name="getListOfClasses">
<wsdl:documentation>
Gets List Of all ModelEntity Classes.
</wsdl:documentation>
<wsdl:input message="tns:getListOfClassesRequest" name="getListOfClassesRequest" />
<wsdl:output message="tns:getListOfClassesResponse" name="getListOfClassesResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
<wsdl:operation name="getCreateAttributes">
<wsdl:documentation>
Gets ModelEntity Create Attributes.
</wsdl:documentation>
<wsdl:input message="tns:getCreateAttributesRequest" name="getCreateAttributesRequest" />
<wsdl:output message="tns:getCreateAttributesResponse" name="getCreateAttributesResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
<wsdl:operation name="createModelEntity">
<wsdl:documentation>
Creates Model Entity.
</wsdl:documentation>
<wsdl:input message="tns:createModelEntityRequest" name="createModelEntityRequest" />
<wsdl:output message="tns:createModelEntityResponse" name="createModelEntityResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
<wsdl:operation name="getValueSetForAttribute">
<wsdl:documentation>
Gets Value Set For Attribute.
</wsdl:documentation>
<wsdl:input message="tns:getValueSetForAttributeRequest" name="getValueSetForAttributeRequest" />
<wsdl:output message="tns:getValueSetForAttributeResponse" name="getValueSetForAttributeResponse" />
<wsdl:fault message="tns:PresentationTierFault" name="PresentationTierError" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ModelEntitySoapBinding" type="tns:ModelEntity">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="getListOfClasses">
<soap:operation style="document" soapAction="getListOfClasses" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getCreateAttributes">
<soap:operation style="document" soapAction="getCreateAttributes" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="createModelEntity">
<soap:operation style="document" soapAction="createModelEntity" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getValueSetForAttribute">
<soap:operation style="document" soapAction="getValueSetForAttribute" />
<wsdl:input><soap:body use="literal" /></wsdl:input>
<wsdl:output><soap:body use="literal" /></wsdl:output>
<wsdl:fault name="PresentationTierError"><soap:fault name="PresentationTierError" use="literal" /></wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ModelEntityService">
<wsdl:port binding="tns:ModelEntitySoapBinding" name="ModelEntity">
<soap:address
location="http://localhost:80/PTierApp/WebServices/ModelEntity" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
and xsd is ModelEntity.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!--
bcprt
This software and related documentation are proprietary to UGS Corp.
COPYRIGHT 2006 UGS CORP. ALL RIGHTS RESERVED
ecprt
-->
<xsd:schema targetNamespace="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsc="http://teamcenter.com/TCENT/webservices/2005-06/schemas/Common"
xmlns:wlt="http://teamcenter.com/TCENT/webservices/2005-06/schemas/ModelEntity"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- ================================================================== -->
<!-- Package: ModelEntity -->
<!-- ================================================================== -->
<xsd:annotation>
<xsd:documentation>
The ModelEntity package defines elements and data types
for the parameters used by operations/messages of the ModelEntity Web Service.
</xsd:documentation>
</xsd:annotation>
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity List Of Classes: INPUT -->
<!-- ================================================================== -->
<xsd:element name="GetListOfClassesInputParams"
type="wlt:GetListOfClassesInputType"/>
<xsd:complexType name="GetListOfClassesInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity List Of Classes : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity List Of Classes : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="GetListOfClassesOutputParams"
type="wlt:GetListOfClassesOutputType"/>
<xsd:complexType name="GetListOfClassesOutputType">
<xsd:sequence>
<xsd:element name="ClassList" type="wlt:ModelEntityValueDisplayedValuePair"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Classes : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Create Attributes: INPUT -->
<!-- ================================================================== -->
<xsd:element name="GetCreateAttributesInputParams"
type="wlt:GetCreateAttributesInputType"/>
<xsd:complexType name="GetCreateAttributesInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
<xsd:element name="ClassName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Create Attributes : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Create Attributes : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="GetCreateAttributesOutputParams"
type="wlt:GetCreateAttributesOutputType"/>
<xsd:complexType name="GetCreateAttributesOutputType">
<xsd:sequence>
<xsd:element name="Attributes" type="wlt:ModelEntityCreateAttributes"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Create Attributes : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Value Set For Attribute: INPUT -->
<!-- ================================================================== -->
<xsd:element name="GetValueSetForAttributeInputParams"
type="wlt:GetValueSetForAttributeInputType"/>
<xsd:complexType name="GetValueSetForAttributeInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
<xsd:element name="Attribute" type="xsd:string"/>
<!-- optional criteria -->
<xsd:element name="Criteria" type="wlt:ModelEntityNameValuePair"
minOccurs="0" maxOccurs="unbounded" />
<!-- optional class name -->
<xsd:element name="ClassName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Value Set For Attribute : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Get Model Entity Value Set For Attribute : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="GetValueSetForAttributeOutputParams"
type="wlt:GetValueSetForAttributeOutputType"/>
<xsd:complexType name="GetValueSetForAttributeOutputType">
<xsd:sequence>
<xsd:element name="StaticValues" type="wlt:ModelEntityValueDisplayedValuePair"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Get Model Entity Value Set For Attribute : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN: Create Model Entity : INPUT -->
<!-- ================================================================== -->
<xsd:element name="CreateModelEntityInputParams"
type="wlt:CreateModelEntityInputType"/>
<xsd:complexType name="CreateModelEntityInputType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
<xsd:element name="ClassName" type="xsd:string"/>
<xsd:element name="Attributes" type="wlt:ModelEntityNameValuePair"
maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Create Model Entity : INPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN : Create Model Entity : OUTPUT -->
<!-- ================================================================== -->
<xsd:element name="CreateModelEntityOutputParams"
type="wlt:CreateModelEntityOutputType"/>
<xsd:complexType name="CreateModelEntityOutputType">
<xsd:sequence>
<xsd:element name="ObjectHandle" type="xsd:string"/>
<xsd:element name="ReturnType" type="xsd:boolean"/>
<xsd:element name="ReturnMessage" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Create Model Entity : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN : Create Model Entity Attributes : OUTPUT -->
<!-- ================================================================== -->
<xsd:complexType name="ModelEntityCreateAttributes">
<xsd:sequence>
<xsd:element name="DisplayedName" type="xsd:string"/>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="StaticValues" type="wlt:ModelEntityValueDisplayedValuePair"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="IsRequired" type="xsd:boolean"/>
<xsd:element name="HasValueSet" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Create Model Entity Attributes : OUTPUT -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- BEGIN : Model Entity Pairs : INPUT/OUTPUT -->
<!-- ================================================================== -->
<xsd:complexType name="ModelEntityNameValuePair">
<xsd:sequence>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="Value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ModelEntityValueDisplayedValuePair">
<xsd:sequence>
<xsd:element name="Value" type="xsd:string"/>
<xsd:element name="DisplayedValue" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!-- ================================================================== -->
<!-- END : Model Entity Pairs : INPUT/OUTPUT -->
<!-- ================================================================== -->
</xsd:schema>check metalink note
Adpatch Fails With Error : adogjf() Unable to copy Registry.Dat.
Note:282153.1
also check (Adogjf() Unable To Copy Registry.Dat).
Note:382695.1 about the correct on the $806_ORACLE_HOME/forms60/java where it should be 755
make sure that you soruce the env fiel before adpatch and that ORACLE_HOME is poinitng to the correct oracle_home
fadi -
I have tried to create below WSDL using WSAD.
Getting warning at line: <wsdl:binding name="send3MailBinding" type="tns:sendmailPortType">
Kind Status Priority Description Resource In Folder Location
Warning WS-I: The binding (in soapbind:body elements) refers to part(s) of a soap:body element that do not have the "element" attribute. test.wsdl ws2test/WebContent line 27
Could somebody help me?
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="test" targetNamespace="http://tempuri.org/test/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/test/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/test/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="maillist">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="email" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="mailinput">
<wsdl:part name="body" type="tns:maillist" />
</wsdl:message>
<wsdl:message name="mailoutput">
<wsdl:part name="body" type="xsd:boolean" />
</wsdl:message>
<wsdl:portType name="sendmailPortType">
<wsdl:operation name="sendmail">
<wsdl:input message="tns:mailinput" />
<wsdl:output message="tns:mailoutput" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="send3MailBinding" type="tns:sendmailPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="sendmail">
<soap:operation soapAction="http://tempuri.org/test/sendmail" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="mail3Service">
<wsdl:port name="sendMailPort" binding="tns:send3MailBinding">
<soap:address location="http://localhost:9080/ws2test/services/sendMailPort" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>Though ServiceNet proxy services will be fully WS-I compliant. However, there are some known compliancy issues with the WSDL generated from webMethods for SOAP-RPC services.
However, webMethod ServiceNet should protect web service clients from these compliance short comings.
Cheers,
Amit -
Clientgen does not fully qualify superclasses
I have datatypes that extend classes in a different package. When I use
WLS81 ANT task clientgen to generate client-jars from WSDL files obtained
from web services generated by servicegen, the superclasses are not fully
qualified in the generated java code, nor are there import statements for
the superclasses. This causes the generated code to have compile errors.
Other dependencies are fully qualified in the generated code, but the
superclass is not.
There mayThe WSDL is included below. Specifically,
com.starcomsoft.pp.database.BaseHelper does not get a fully qualifed
reference in the generated java code.
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:tns="http://localhost:7001/webservice/"
xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12
="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap12enc="http://www.w3.org/2002/12/soap-encoding"
xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://localhost:7001/webservice/">
<types xmlns:tns="http://localhost:7001/webservice/"
xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12
="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap12enc="http://www.w3.org/2002/12/soap-encoding"
xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:com.starcomsoft.pp.common" elementFormDefault="qualified"
attributeFormDefault="qualified"
targetNamespace="java:com.starcomsoft.pp.common">
<xsd:complexType name="AbstractSearchCriteria"
abstract="true">
<xsd:sequence>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:com.starcomsoft.pp.customer"
elementFormDefault="qualified" attributeFormDefault="qualified"
targetNamespace="java:com.starcomsoft.pp.customer">
<xsd:import namespace="java:com.starcomsoft.pp.database">
</xsd:import>
<xsd:import namespace="java:language_builtins.lang">
</xsd:import>
<xsd:import namespace="java:language_builtins.util">
</xsd:import>
<xsd:import
namespace="http://schemas.xmlsoap.org/soap/encoding/">
</xsd:import>
<xsd:import namespace="java:com.starcomsoft.pp.common">
</xsd:import>
<xsd:complexType name="Address">
<xsd:complexContent>
<xsd:extension base="stns:AddressHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AddressHelper" abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:string"
name="addressOne" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="addressTwo" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="city" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="stateId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="zipCode" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ArrayOfCustomerGraphData">
<xsd:complexContent>
<xsd:restriction
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType"
wsdl:arrayType="stns:CustomerGraphData[]">
</xsd:attribute>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ArrayOfProfile">
<xsd:complexContent>
<xsd:restriction
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType"
wsdl:arrayType="stns:Profile[]">
</xsd:attribute>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Contact">
<xsd:complexContent>
<xsd:extension base="stns:ContactHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ContactHelper" abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:boolean"
name="active" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="contactPoint" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="customerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="departmentId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="first" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="last" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:boolean"
name="primaryContact" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="title" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="type" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Customer">
<xsd:complexContent>
<xsd:extension base="stns:CustomerHelper">
<xsd:sequence>
<xsd:element type="stns:Address"
name="billAddressData" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="stns:Address"
name="billToAddress" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="stns:Address"
name="shipAddressData" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="stns:Address"
name="shipToAddress" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CustomerAdjustment">
<xsd:complexContent>
<xsd:extension
base="stns:CustomerAdjustmentHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CustomerAdjustmentHelper"
abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:int"
name="adjustmentId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:double"
name="amount" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="code" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="customerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="facilityId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="factorId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="methodId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="type" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:double"
name="value" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CustomerGraphCollection">
<xsd:sequence>
<xsd:element
type="stns:ArrayOfCustomerGraphData" name="customerGraphDataValues"
minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CustomerGraphData">
<xsd:sequence>
<xsd:element type="xsd:string" name="code"
minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int" name="id"
minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string" name="name"
minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int" name="parentId"
minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CustomerHelper" abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:int"
name="accountStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:dateTime"
name="agingDate" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="agingDays" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="allowSplitOrders" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:double"
name="balanceDue" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="stns:Address"
name="billAddressData" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="stns:Address"
name="billToAddress" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="billToAddressId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="billingAddressSourceCode" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="billingPartnerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="billingPartnerName" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="buyer" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:double"
name="creditAvailable" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:double"
name="creditLimit" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="currencyId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="customerCode" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="deliveryPoints" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="departmentCode" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="dropSequence" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="facilityId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:double"
name="financeChargePercent" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="fixedTimeForStop" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:double"
name="freightAmount" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="freightTypeId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="groupId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="gstTaxApplicable" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="hasHistory" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="importNumber" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:boolean"
name="isDirectlyBillable" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="isGroupVolumeDiscounted" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="isRegion" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="isShipTo" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="kitCodeId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="leadTime" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="lockoutControl" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="managerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="mediumRangeZone" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="merchandiserId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="name" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="packageId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="parentCustomerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="parentName" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="priceListId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="printStatement" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="receivingTimeFrom" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="receivingTimeTo" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="requirePO" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="requireSKU" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="salesRepId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="stns:Address"
name="shipAddressData" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="stns:Address"
name="shipToAddress" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="shipToAddressId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="shipViaId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="shipZoneId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="shortRangeZone" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="specialCodes" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:dateTime"
name="startDate" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="storeNumber" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="summaryPrintCodeId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="taxCodeId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="taxNumber" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="termsCodeId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:double"
name="toBeDue" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="useShippingAddress" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="vendorNumber" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="warningControl" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CustomerProfile">
<xsd:sequence>
<xsd:element type="stns:ArrayOfProfile"
name="profiles" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CustomerSearchCriteria">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.common" base="tp:AbstractSearchCriteria">
<xsd:sequence>
<xsd:element type="xsd:int"
name="billingPartnerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="isDirectlyBillable" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="isRegion" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:boolean"
name="isShipTo" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="parentCustomerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="searchString" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="searchType" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CustomerTypePct">
<xsd:complexContent>
<xsd:extension
base="stns:CustomerTypePctHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CustomerTypePctHelper"
abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:int"
name="customerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="customerTypeId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="status" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="typePct" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="MailingListSubscription">
<xsd:complexContent>
<xsd:extension
base="stns:MailingListSubscriptionHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="MailingListSubscriptionHelper"
abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:boolean"
name="checked" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="customerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="mailingListId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="mailingListName" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="NoteVault">
<xsd:complexContent>
<xsd:extension base="stns:NoteVaultHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="NoteVaultHelper" abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="tag" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="text" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="type" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Notes">
<xsd:complexContent>
<xsd:extension base="stns:NotesHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="NotesHelper" abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:int"
name="customerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:dateTime"
name="date" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:string"
name="owner" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="reference" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="subtype" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="text" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="type" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Profile">
<xsd:complexContent>
<xsd:extension base="stns:ProfileHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ProfileHelper" abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:int"
name="customerId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="id" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.util" type="tp:ArrayList"
name="messageList" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="numericInfo" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element
type="stns:ProfileInfo" name="profileInfoData" minOccurs="1" maxOccurs="1"
nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="profileInfoId" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:int"
name="recordStatus" minOccurs="1" maxOccurs="1">
</xsd:element>
<xsd:element type="xsd:string"
name="textInfo" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element type="xsd:int"
name="version" minOccurs="1" maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ProfileInfo">
<xsd:complexContent>
<xsd:extension base="stns:ProfileInfoHelper">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ProfileInfoHelper"
abstract="true">
<xsd:complexContent>
<xsd:extension
xmlns:tp="java:com.starcomsoft.pp.database" base="tp:BaseHelper">
<xsd:sequence>
<xsd:element type="xsd:string"
name="domainValueName" minOccurs="1" maxOccurs="1" nillable="true">
</xsd:element>
<xsd:element
xmlns:tp="java:language_builtins.lang" type="tp:ArrayOfString"
name="errorMessages" minOccurs="1" maxOccurs="1" nillablBruce,
Sorry, I forgot to mention that the WSDL was generated by querying the URL
of the deployed webservice. If there is something missing from the WSDL,
it may be due to servicegen, or a problem with deployement. All of this
used to work in WLS 7.0 sp1.
I submitted this case (459937) to BEA Support on 11/12/03 and have given
them my EJB jar file so they can reproduce the problem using servicegen.
I would appreciate any input you can provide to resolve this problem, but
you can let Support handle it from here if you wish.
Thanks,
Tony
[email protected] (Bruce Stephens) wrote:
Hi Tony,
Could you clarify your starting point; i.e. do you begin with WSDL or
from java?
In looking at your WSDL, on the surface I'm concerned that the imports
should be something like <xsd:import namespace="..."
schemaLocation="myschema.xsd"/> so it may not be including your
definitions.
Thanks,
Bruce
Tony Huang wrote:
I have datatypes that extend classes in a different package. When I
use WLS81 ANT task clientgen to generate client-jars from WSDL files
obtained from web services generated by servicegen, the superclasses
are not fully qualified in the generated java code, nor are there
import statements for the superclasses. This causes the generated
code to have compile errors. Other dependencies are fully qualified in
the generated code, but the superclass is not.
There mayThe WSDL is included below. Specifically,
com.starcomsoft.pp.database.BaseHelper does not get a fully qualifed
reference in the generated java code. -
Error when using int array as out parameter
Hi,
I have created a simple webservice in Weblogic 8.1.4 and created a method that takes the following parameters:
* @wlws:part errorCodes style="out"
* @wlws:part Result style="out"
public void checkPin(int[] cardId, int validation, String cardType, int blockedBy, int[] lang, int[]errorCodes, IntHolder Result)
I've compiled the code using an ant script and it calls autotype, source2wsdd and clientgen, then deploys the webservice successfully. However, when I invoke the webmethod either through a client (.net client) or through the weblogic console webservice test interface it throws a soap fault:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Exception during processing: java.lang.IllegalArgumentException: argument type mismatch (see Fault Detail for stacktrace)</faultstring><detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.webservice.component.javaclass.JavaClassInvocationHandler.invoke(JavaClassInvocationHandler.java:133)
at weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.java:104)
at weblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainImpl.java:143)
at weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:535)
at weblogic.webservice.server.Dispatcher.process(Dispatcher.java:204)
at weblogic.webservice.server.Dispatcher.doDispatch(Dispatcher.java:176)
at weblogic.webservice.server.Dispatcher.dispatch(Dispatcher.java:96)
at weblogic.webservice.server.WebServiceManager.dispatch(WebServiceManager.java:100)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:297)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:485)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
</bea_fault:stacktrace></detail></env:Fault></env:Body></env:Envelope>
The WSDL looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns:tns="http://tempuri.org/" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
- <types xmlns:tns="http://tempuri.org/" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/">
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:language_builtins" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="java:language_builtins">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="ArrayOfInt">
- <xsd:complexContent>
- <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" wsdl:arrayType="xsd:int[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:language_builtins.lang" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="java:language_builtins.lang">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="ArrayOfString">
- <xsd:complexContent>
- <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</types>
- <message name="setBlockingStatus">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="block" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="newBlockedBy" />
</message>
- <message name="setBlockingStatusResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="getStatus">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
</message>
- <message name="getStatusResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="balance" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="lang" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="block" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="firstUse" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="lastUse" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="expireFirstUse" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="cardBlockedBy" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="expireLastUse" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="expireActivation" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="setLang">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="lang" />
</message>
- <message name="setLangResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="changeBalance">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
</message>
- <message name="changeBalanceResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="units" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="balanceBefore" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="balanceAfter" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodePos" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="checkPin">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="lang" />
</message>
- <message name="checkPinResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <portType name="XanticChatCardServicePort">
- <operation parameterOrder="cardId validation cardType blockedBy block newBlockedBy errorCodes Result" name="setBlockingStatus">
<input message="tns:setBlockingStatus" />
<output message="tns:setBlockingStatusResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy balance lang block firstUse lastUse expireFirstUse cardBlockedBy expireLastUse expireActivation errorCodes Result" name="getStatus">
<input message="tns:getStatus" />
<output message="tns:getStatusResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy lang errorCodes Result" name="setLang">
<input message="tns:setLang" />
<output message="tns:setLangResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy units balanceBefore balanceAfter errorCodes errorCodePos Result" name="changeBalance">
<input message="tns:changeBalance" />
<output message="tns:changeBalanceResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy lang errorCodes Result" name="checkPin">
<input message="tns:checkPin" />
<output message="tns:checkPinResponse" />
</operation>
</portType>
- <binding type="tns:XanticChatCardServicePort" name="XanticChatCardServicePort">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="setBlockingStatus">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="getStatus">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="setLang">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="changeBalance">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="checkPin">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
</binding>
- <service name="XanticChatCardService">
- <port name="XanticChatCardServicePort" binding="tns:XanticChatCardServicePort">
<soap:address location="http://localhost:7001/XanticChatCardWebservice/XanticChatCardService" />
</port>
</service>
</definitions>
Any idea what the problem would be? This should workOk...I proved myself wrong. After further review I found a post on here that somebody had a similar problem and solved it. It all comes down to the autotype generation. For some reason, my autotypes get generated in a different namespace "language_builtins.lang". I read that XML-RPC wants all custom out parameters to be placed under the webservice package/holders namespace but for some reason autotype autogenerates the holders in language_builtins. I've played with the options for autotype but nothing seem to fix it so I basically took the .wsdl file generated by source2wsdd, changed all references to language_builtins to the proper namespace and reran autotypes with the wsdl option instead of javaComponent. That seem to have forced the classes to be generated in the correct directories.
-
Non-built-in type contained in a java.util.List creates a SoapFaultException
I have created a web service that utilizes non-built-in types which uses other
non-built-in types...(simplified example follows)
public class MyService {
public
Foo getFoo( String id ) {
Foo foo = ...; // get persisted foo
return foo;
package mypackage;
public class Foo {
java.util.List barList;
public java.util.List getBars() { return barList; }
public void setBars( java.util.List barList ) { this.barList = barList; }
public class Bar {
// some attributes
I autotyped Bar explicitly and had servicegen/service autotype non-built-in data
types for MyService (aka..Foo)
When I execute the test web page...I get the following soap fault exception (Note:
only if the barList contains some Bar objects)
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Exception during processing: Error at line:1 col:9159 '1' expected
[?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Error
at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:147)
at weblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174)
at weblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckSoapFaultHandler.java:21)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:231)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:349)
at weblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebServiceServlet.java:354)
at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:300)
at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:344)
at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
</bea_fault:stacktrace>
</detail>
</env:Fault>
When barList is empty...the webservice executes without any problems.
I noticed in the generated types.xml...there is a "List" entry and a "java.util.List"
entry. The bars has "List" associated with it...
<?xml version="1.0" encoding="UTF-8"?>
<XMLSchemaAndTypeMapping>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:mypackage"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:mypackage">
<xsd:complexType name="Foo">
<xsd:complexContent>
<xsd:element xmlns:tp="java:language_builtins.util"
name="bars"
type="tp:List"
nillable="true"
minOccurs="1"
maxOccurs="1">
</xsd:element>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:language_builtins.util"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:language_builtins.util">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
</xsd:import>
<xsd:complexType name="List">
<xsd:complexContent>
<xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
ref="soapenc:arrayType"
wsdl:arrayType="xsd:anyType[]">
</xsd:attribute>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Bar"
type="lcl0:Bar"
serializer="mypackage.BarCodec"
deserializer="mypackage.BarCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
class-name="java.util.List"
type="lcl0:List"
serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
>
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Foo"
type="lcl0:Foo"
serializer="mypackage.FooCodec"
deserializer="mypackage.FooCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
</XMLSchemaAndTypeMapping>
Any ideas what is causing the problem?
Using WLS 8.1 sp2 on WinXP, JDK 1.4
Thanks in advance.
- DougCertain generic types like java.lang.Object, List etc
may not work properly with the test page, because it
is not possible to figure out how the XML data should
look like.
Can you please try it out using a clientgen generated
stub?
Regards,
-manoj
http://manojc.com
"Doug Leeper" <[email protected]> wrote in message
news:40e32790$1@mktnews1...
>
I have created a web service that utilizes non-built-in types which usesother
non-built-in types...(simplified example follows)
public class MyService {
public
Foo getFoo( String id ) {
Foo foo = ...; // get persisted foo
return foo;
package mypackage;
public class Foo {
java.util.List barList;
public java.util.List getBars() { return barList; }
public void setBars( java.util.List barList ) { this.barList =barList; }
public class Bar {
// some attributes
I autotyped Bar explicitly and had servicegen/service autotypenon-built-in data
types for MyService (aka..Foo)
When I execute the test web page...I get the following soap faultexception (Note:
only if the barList contains some Bar objects)
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Exception during processing: Error at line:1 col:9159 '1'expected
[?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
<detail>
<bea_fault:stacktracexmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Er
ror
at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
atweblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
atweblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:
147)
atweblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174
atweblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckS
oapFaultHandler.java:21)
atweblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.ja
va:231)
atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
atweblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase
.java:349)
atweblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebSe
rviceServlet.java:354)
atweblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.j
ava:300)
atweblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServ
iceServlet.java:344)
atweblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:26
6)
atweblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
atweblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet
.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:
313)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6356)
atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3635)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
</bea_fault:stacktrace>
</detail>
</env:Fault>
When barList is empty...the webservice executes without any problems.
I noticed in the generated types.xml...there is a "List" entry and a"java.util.List"
entry. The bars has "List" associated with it...
<?xml version="1.0" encoding="UTF-8"?>
<XMLSchemaAndTypeMapping>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:mypackage"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:mypackage">
<xsd:complexType name="Foo">
<xsd:complexContent>
<xsd:element xmlns:tp="java:language_builtins.util"
name="bars"
type="tp:List"
nillable="true"
minOccurs="1"
maxOccurs="1">
</xsd:element>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:language_builtins.util"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="java:language_builtins.util">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
</xsd:import>
<xsd:complexType name="List">
<xsd:complexContent>
<xsd:restrictionxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
ref="soapenc:arrayType"
wsdl:arrayType="xsd:anyType[]">
</xsd:attribute>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Bar"
type="lcl0:Bar"
serializer="mypackage.BarCodec"
deserializer="mypackage.BarCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
class-name="java.util.List"
type="lcl0:List"
serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
>
deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec
>>
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
class-name="mypackage.Foo"
type="lcl0:Foo"
serializer="mypackage.FooCodec"
deserializer="mypackage.FooCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
</XMLSchemaAndTypeMapping>
Any ideas what is causing the problem?
Using WLS 8.1 sp2 on WinXP, JDK 1.4
Thanks in advance.
- Doug -
Unexpected element name: expected WHEN INVOKING A WEB SERVICE
I am pretty new to Web Services and need some helping in resolving the following error. I created following two classes and published one of the method savePerson. When I tried to invoke the webservice through my browser passing the following:
<ns1:savePersonElement xmlns:ns1="http://mypackage17/Person.wsdl/types">
<ns1:sex>simpleType value</ns1:sex>
<ns1:human>
<ns2:last xmlns:ns2="http://tempuri.org">simpleType value</ns2:last>
<ns3:first xmlns:ns3="http://tempuri.org">simpleType value</ns3:first>
</ns1:human>
</ns1:savePersonElement>
I get the following error:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://mypackage17/Person.wsdl/types">
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>caught exception while handling request: unexpected element name: expected={http://mypackage17/Person.wsdl/types}name, actual={http://mypackage17/Person.wsdl/types}sex</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
But passing the following works fine as have passed all the parameters data:
<ns1:savePersonElement xmlns:ns1="http://mypackage17/Person.wsdl/types">
<ns1:name>simpleType value</ns1:name>
<ns1:sex>simpleType value</ns1:sex>
<ns1:human>
<ns2:last xmlns:ns2="http://tempuri.org">simpleType value</ns2:last>
<ns3:first xmlns:ns3="http://tempuri.org">simpleType value</ns3:first>
</ns1:human>
</ns1:savePersonElement>
Here is the code I have for the webservice:
package mypackage17;
*@oracle.ws.WebService name = "MyWebService2", serviceName = "MyWebService2", description = "", targetNamespace = "http://tempuri.org", schemaTargetNamespace = "http://mypackage17/Person.wsdl/types", endpointInterface = "mypackage17.MyWebService1SEI"
*@oracle.ws.SOAPBinding style = "DOCUMENT", use = "LITERAL", documentWrapped = "true", bindingName = "MyWebService1SoapHttp", portName = "MyWebService1Port"
public class Person extends Human
private String name;
private String sex;
public Person(){}
public void setName(String name)
this.name = name;
public void setSex(String sex)
this.sex = sex;
public String getName()
return this.name;
public String getSex()
return this.sex;
*@oracle.ws.DocumentWrapper requestType = "savePerson", requestElement = "savePersonElement", requestPart = "parameters", responseType = "savePersonResponse", responseElement = "savePersonResponseElement", responsePart = "parameters"
*@oracle.ws.WebMethod operationName = "savePerson", description = "", oneway = "false", documentWrapped = "true", inputMessage = "MyWebService1SEI_savePerson", outputMessage = "MyWebService1SEI_savePersonResponse", responsePart = "result"
*@oracle.ws.ParamPart position = "0", partName = "name", mode = "IN", soapHeader = "false"
*@oracle.ws.ParamPart position = "1", partName = "sex", mode = "IN", soapHeader = "false"
*@oracle.ws.ParamPart position = "2", partName = "human", mode = "IN", soapHeader = "false"
public void savePerson(String name, String sex, Human[] human)
System.out.println("Name: " + name);
System.out.println("Sex: " + sex);
System.out.println(human.length);
System.out.println("1 First: " + human[0].getFirst());
System.out.println("1 Last: " + human[0].getLast());
System.out.println("2 First: " + human[1].getFirst());
System.out.println("2 Last: " + human[1].getLast());
/****** THE OTHER CLASS ********/
package mypackage17;
public class Human
private String first;
private String last;
public Human(){}
public void setFirst(String first)
this.first = first;
public void setLast(String last)
this.last = last;
public String getFirst()
return this.first;
public String getLast()
return this.last;
Here is the WSDL generated using JDeveloper 10.1.3:
<?xml version="1.0" encoding="UTF-8" ?>
<definitions
name="MyWebService2"
targetNamespace="http://tempuri.org"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://tempuri.org"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:ns1="http://mypackage17/Person.wsdl/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://tempuri.org" elementFormDefault="qualified"
xmlns:tns="http://tempuri.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
<import namespace="http://mypackage17/Person.wsdl/types"/>
<complexType name="Human">
<sequence>
<element name="last" type="string" nillable="true"/>
<element name="first" type="string" nillable="true"/>
</sequence>
</complexType>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mypackage17/Person.wsdl/types"
elementFormDefault="qualified" xmlns:tns="http://mypackage17/Person.wsdl/types"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://tempuri.org">
<import namespace="http://tempuri.org"/>
<complexType name="savePerson">
<sequence>
<element name="name" type="string" nillable="true"/>
<element name="sex" type="string" nillable="true"/>
<element name="human" type="ns1:Human" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="savePersonResponse">
<sequence/>
</complexType>
<element name="savePersonElement" type="tns:savePerson"/>
<element name="savePersonResponseElement" type="tns:savePersonResponse"/>
</schema>
</types>
<message name="MyWebService1SEI_savePerson">
<part name="parameters" element="ns1:savePersonElement"/>
</message>
<message name="MyWebService1SEI_savePersonResponse">
<part name="parameters" element="ns1:savePersonResponseElement"/>
</message>
<portType name="MyWebService2">
<operation name="savePerson">
<input message="tns:MyWebService1SEI_savePerson"/>
<output message="tns:MyWebService1SEI_savePersonResponse"/>
</operation>
</portType>
<binding name="MyWebService1SoapHttp" type="tns:MyWebService2">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="savePerson">
<soap:operation soapAction="http://tempuri.org:savePerson"/>
<input>
<soap:body use="literal" parts="parameters"/>
</input>
<output>
<soap:body use="literal" parts="parameters"/>
</output>
</operation>
</binding>
<service name="MyWebService2">
<port name="MyWebService1Port" binding="tns:MyWebService1SoapHttp">
<soap:address location="http://192.168.2.101:8988/JavaWebService/MyWebService2"/>
</port>
</service>
</definitions>
Can someone tell what am I doing wrong. As it looks like I have to pass all the parameters for the method that is published but what if some are missing basically I want to keep all the parameters optional. How can I make the service to return the same what is passed when invoked. Any help is appreciated. I am using JDeveloper 10.1.3.To make the service return "whatever is passed", you have to take a step back and realize that there is a little understanding of XML Schema required.
When using a complexType, which is defined as a sequence, then you are implying an ordered sequence of elements. Default value for the 'minOccurs' attribute is 1. It's also important to understand that there is a difference between minOccurs=0 and nillable="true".
nillable="true" just means that the name element can carry a null value. If you want the name element to be optional, then you must use the minOccurs=0 and keep the maxOccurs to it's default value of 1. Using an array is just a bad work around. This is for deserialization (XML to JAVA).
The second part of you problem is on the serialization (or JAVA to XML). When you have a JAVA Bean, there is no way to make the difference between a member's value being null or not set, so it's impossible to decide if you need to send back a nul (xsi:nil="true"), an empty element <ns1:name/> or nothing.
That said, if you do want to go the XML route, you can use the dataBinding="false" flag in the different WSA command. Instead of converting XML into JAVA, you will have SOAPElement parameters, where you can do all you want (see WS user's guide [1] for details - chapter 16). Note that you have to make sure that the WSDL (your contract) reflect what you are doing on the wire (format of your messages), so that you do not geopardize your interoperability with other toolkit.
Note that this only applies to literal message formats (use attribute in WSDL), which is your case.
Hope this helps,
Eric
[1] http://download-west.oracle.com/otn_hosted_doc/ias/preview/web.1013/b14434.pdf -
Hey,
did anybody ever face this problem? I am working on it since hours, but cannot find any solution. my wsdl was generated from websphere studio
application developer 5.1.2. and now I run wscompile and get these error
messages.
when I compile my wsdl to get the client side artifacts like stub, etc and I get the following error message:
error: in message "SystemSupportException", part "fault" must specify a "element" attribute
the whole stack looks like this:
in message "SystemSupportException", part "fault" must specify a "element" attri
bute
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.handleLiteralS
OAPFault(WSDLModelerBase.java:1893)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processSOAPOpe
rationRPCLiteralStyle(WSDLModelerBase.java:1764)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processSOAPOpe
ration(WSDLModelerBase.java:663)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processPort(WS
DLModelerBase.java:548)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processService
(WSDLModelerBase.java:385)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.internalBuildM
odel(WSDLModelerBase.java:238)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSD
LModelerBase.java:146)
at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:
85)
at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:61)
at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:571)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:40)
at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22)
error: in message "SystemSupportException", part "fault" must specify a "element
" attribute
my wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://core.rbac.csap2" xmlns:impl="http://core.rbac.csap2" xmlns:intf="http://core.rbac.csap2" xmlns:tns2="http://exceptions.csap2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://core.rbac.csap2" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://core.rbac.csap2" xmlns:intf="http://core.rbac.csap2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<element name="sessionId" nillable="true" type="xsd:string"/>
<element name="name" nillable="true" type="xsd:string"/>
<element name="password" nillable="true" type="xsd:string"/>
<element name="loginAndCreateSessionReturn" nillable="true" type="xsd:string"/>
</schema>
<schema targetNamespace="http://exceptions.csap2" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://core.rbac.csap2" xmlns:intf="http://core.rbac.csap2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<complexType name="SystemSupportException">
<complexContent>
<extension base="tns2:CSAP2Exception">
<sequence/>
</extension>
</complexContent>
</complexType>
<complexType name="CSAP2Exception">
<sequence>
<element name="message" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<element name="SystemSupportException" nillable="true" type="tns2:SystemSupportException"/>
</schema>
</wsdl:types>
<wsdl:message name="SystemSupportException">
<wsdl:part name="fault" type="tns2:SystemSupportException"/>
</wsdl:message>
<wsdl:message name="logoutResponse">
</wsdl:message>
<wsdl:message name="logoutRequest">
<wsdl:part name="sessionId" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="loginAndCreateSessionResponse">
<wsdl:part name="loginAndCreateSessionReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="loginAndCreateSessionRequest">
<wsdl:part name="name" type="xsd:string"/>
<wsdl:part name="password" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="SystemSupport">
<wsdl:operation name="logout" parameterOrder="sessionId">
<wsdl:input message="intf:logoutRequest" name="logoutRequest"/>
<wsdl:output message="intf:logoutResponse" name="logoutResponse"/>
<wsdl:fault message="intf:SystemSupportException" name="SystemSupportException"/>
</wsdl:operation>
<wsdl:operation name="loginAndCreateSession" parameterOrder="name password">
<wsdl:input message="intf:loginAndCreateSessionRequest" name="loginAndCreateSessionRequest"/>
<wsdl:output message="intf:loginAndCreateSessionResponse" name="loginAndCreateSessionResponse"/>
<wsdl:fault message="intf:SystemSupportException" name="SystemSupportException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SystemSupportSoapBinding" type="intf:SystemSupport">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="logout">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="logoutRequest">
<wsdlsoap:body namespace="http://core.rbac.csap2" use="literal"/>
</wsdl:input>
<wsdl:output name="logoutResponse">
<wsdlsoap:body namespace="http://core.rbac.csap2" use="literal"/>
</wsdl:output>
<wsdl:fault name="SystemSupportException">
<wsdlsoap:fault name="SystemSupportException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="loginAndCreateSession">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="loginAndCreateSessionRequest">
<wsdlsoap:body namespace="http://core.rbac.csap2" use="literal"/>
</wsdl:input>
<wsdl:output name="loginAndCreateSessionResponse">
<wsdlsoap:body namespace="http://core.rbac.csap2" use="literal"/>
</wsdl:output>
<wsdl:fault name="SystemSupportException">
<wsdlsoap:fault name="SystemSupportException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SystemSupportService">
<wsdl:port binding="intf:SystemSupportSoapBinding" name="SystemSupport">
<wsdlsoap:address location="http://localhost:9080/CSAP2SysSupRouter/services/SystemSupport"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>I would be glad to get a response to this topic. I am really on my personal limits!
thanks and regards,
simonhi,
first of all your service user : SID_PIRWBUSR
has a wrong name it sould be PIRWBUSR
so check where did you define this SID_PIRWBUSR
Regards,
michal -
I am unable to get the dynamic webservice client to work. It looks like I am not
registering the types properly. Could someone be kind enough to review my WSDL
and client program and suggest a solution?
My test code segment
====================
private Service getWebService() throws Exception {
if(webService == null) {
// create service factory
ServiceFactory factory = ServiceFactory.newInstance();
// define qnames
QName serviceName = new QName(targetNamespace, "LAS");
URL wsdlLocation = new URL("http://localhost:7001/webservices/LAS?WSDL");
// create service
webService = factory.createService(wsdlLocation, serviceName);
TypeMappingRegistry registry = webService.getTypeMappingRegistry();
TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING
registerTypes(mapping);
return webService;
private void registerTypes(TypeMapping mapping) throws Exception {
mapping.register(com.docent.webservices.webites.WebCategory.class,
new QName("java:com.docent.webservices.webites", "WebCategory"),
new WebCategoryCodec(),
new WebCategoryCodec());
WSDL (snippet)
=====
<?xml version="1.0" encoding="utf-8" ?>
- <definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.docent.com/webservices/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.docent.com/webservices/" xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:language_builtins"
attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="java:language_builtins">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="ArrayOfInt">
- <xsd:complexContent>
- <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType"
wsdl:arrayType="xsd:int[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:com.docent.webservices.webites"
attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="java:com.docent.webservices.webites">
<xsd:import namespace="java:com.docent.server.entities" />
<xsd:import namespace="java:language_builtins" />
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="WebCategory">
- <xsd:sequence>
<xsd:element name="globalId" maxOccurs="1" type="xsd:string" minOccurs="1" nillable="true"
/>
<xsd:element name="objectives" maxOccurs="1" type="xsd:string" minOccurs="1"
nillable="true" />
<xsd:element name="keywords" maxOccurs="1" type="xsd:string" minOccurs="1" nillable="true"
/>
<xsd:element name="description" maxOccurs="1" type="xsd:string" minOccurs="1"
nillable="true" />
<xsd:element name="title" maxOccurs="1" type="xsd:string" minOccurs="1" nillable="true"
/>
<xsd:element name="parentId" maxOccurs="1" type="xsd:int" minOccurs="1" />
<xsd:element name="id" maxOccurs="1" type="xsd:int" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>Had the same issue and it was related to the Web Server not on the same tools version as App Server. Maybe you should try to re-create your PIA domain.
-
Unexpected value type for Item Tag Name ; expected System.Single, received
Hi,
I am using PCo 2.1 with MII 12.1 to extract values from some PI tags. When I run the query, I get this error -
Unexpected value type for Item <Tag Name>; expected System.Single, received System.String[Value = Scan Off]
Can somebody explain what I need to do to get the correct result?
Regards,
Chanti.To make the service return "whatever is passed", you have to take a step back and realize that there is a little understanding of XML Schema required.
When using a complexType, which is defined as a sequence, then you are implying an ordered sequence of elements. Default value for the 'minOccurs' attribute is 1. It's also important to understand that there is a difference between minOccurs=0 and nillable="true".
nillable="true" just means that the name element can carry a null value. If you want the name element to be optional, then you must use the minOccurs=0 and keep the maxOccurs to it's default value of 1. Using an array is just a bad work around. This is for deserialization (XML to JAVA).
The second part of you problem is on the serialization (or JAVA to XML). When you have a JAVA Bean, there is no way to make the difference between a member's value being null or not set, so it's impossible to decide if you need to send back a nul (xsi:nil="true"), an empty element <ns1:name/> or nothing.
That said, if you do want to go the XML route, you can use the dataBinding="false" flag in the different WSA command. Instead of converting XML into JAVA, you will have SOAPElement parameters, where you can do all you want (see WS user's guide [1] for details - chapter 16). Note that you have to make sure that the WSDL (your contract) reflect what you are doing on the wire (format of your messages), so that you do not geopardize your interoperability with other toolkit.
Note that this only applies to literal message formats (use attribute in WSDL), which is your case.
Hope this helps,
Eric
[1] http://download-west.oracle.com/otn_hosted_doc/ias/preview/web.1013/b14434.pdf -
Error returning String[]
i am trying to write a jax-rpc client for my web service, but am having
trouble with array types and custom object types. it was deployed using
servicegen ant task in weblogic 7 sp1. i have a static client that works
fine. i think i am not setting the type and namespace correctly.
call.setReturnType(new QName("java:language_builtins.lang",
"ArrayOfString"));
call.setReturnType(new QName("java:com.yellowshirt.management.wlpi",
"TaskCounts"));
[java] WARNINIG: Unable to find a javaType for the
xmlType:['http://www.intersperse.com/webservices/wlpi']:ArrayOfString.
Make sure that you have registered this xml type in the type mapping
[java] Using SOAPElement instead
[java] javax.xml.rpc.JAXRPCException: failed to invoke operation.
Error in the soap layer (jaxm); nested exception
is: Message[failed to deserialize
xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup
failure for xml type
['http://www.intersperse.com/webservices/wlpi']:ArrayOfString and java
interface javax.xml.soap.SOAPElement]StackTrace[
[java]
[java] javax.xml.soap.SOAPException: failed to deserialize
xml:weblogic.xml.schema.binding.DeserializationException
: mapping lookup failure for xml type
['http://www.intersperse.com/webservices/wlpi']:ArrayOfString and java
interface javax.xml.soap.SOAPElement
[java] at
weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:301)
[java] at
weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:369)
[java] at
weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:465)
[java] at
weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:359)
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:416)
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:290)
[java] at
com.yellowshirt.management.wlpi.RPCClient.showOrgs(RPCClient.java:61)
[java] at
com.yellowshirt.management.wlpi.RPCClient.main(RPCClient.java:37)
[java] ]
[java]
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:425)
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:290)
wsdl (auto-generated)
- <types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:language_builtins.lang"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="java:language_builtins.lang">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="ArrayOfString">
- <xsd:complexContent>
- <xsd:restriction
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:com.yellowshirt.management.wlpi"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="java:com.yellowshirt.management.wlpi">
- <xsd:complexType name="TaskCounts">
- <xsd:sequence>
<xsd:element name="inactive" maxOccurs="1" type="xsd:int"
minOccurs="1" />
<xsd:element name="completed" maxOccurs="1" type="xsd:int"
minOccurs="1" />
<xsd:element name="total" maxOccurs="1" type="xsd:int" minOccurs="1" />
<xsd:element name="overdue" maxOccurs="1" type="xsd:int"
minOccurs="1" />
<xsd:element name="pending" maxOccurs="1" type="xsd:int"
minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>Hello,
Sorry about this issue. I've notified the folks in charge of dev2dev.
Attached is the file.
Bruce
Simon Evans wrote:
thankyou.
but i am having trouble downloading. when i try to download it, it comes
to the login, and i get
* A user is already logged in. If needed, log out and log in with a
different username/password
i have tried everything, but i cant get past this screen.
i have tried 2 logins... evans_simon and evo1
Bruce Stephens wrote:
Hello,
There is an example of a dynamic client using a complex data type.
http://dev2dev.bea.com/managed_content/direct/webservice/dyncmplx.zip
Also, check out the Web Service Wizards Archive:
http://dev2dev.bea.com/managed_content/direct/webservice/wswa.html#qz47
Hope this helps,
Bruce
Simon Evans wrote:
i am trying to write a jax-rpc client for my web service, but am having
trouble with array types and custom object types. it was deployed using
servicegen ant task in weblogic 7 sp1. i have a static client that works
fine. i think i am not setting the type and namespace correctly.
call.setReturnType(new QName("java:language_builtins.lang",
"ArrayOfString"));
call.setReturnType(new QName("java:com.yellowshirt.management.wlpi",
"TaskCounts"));
[java] WARNINIG: Unable to find a javaType for the
xmlType:['http://www.intersperse.com/webservices/wlpi']:ArrayOfString.
Make sure that you have registered this xml type in the type mapping
[java] Using SOAPElement instead
[java] javax.xml.rpc.JAXRPCException: failed to invoke operation.
Error in the soap layer (jaxm); nested exception
is: Message[failed to deserialize
xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup
failure for xml type
['http://www.intersperse.com/webservices/wlpi']:ArrayOfString and java
interface javax.xml.soap.SOAPElement]StackTrace[
[java]
[java] javax.xml.soap.SOAPException: failed to deserialize
xml:weblogic.xml.schema.binding.DeserializationException
: mapping lookup failure for xml type
['http://www.intersperse.com/webservices/wlpi']:ArrayOfString and java
interface javax.xml.soap.SOAPElement
[java] at
weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:301)
[java] at
weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:369)
[java] at
weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:465)
[java] at
weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:359)
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:416)
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:290)
[java] at
com.yellowshirt.management.wlpi.RPCClient.showOrgs(RPCClient.java:61)
[java] at
com.yellowshirt.management.wlpi.RPCClient.main(RPCClient.java:37)
[java] ]
[java]
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:425)
[java] at
weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:290)
wsdl (auto-generated)
- <types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:language_builtins.lang"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="java:language_builtins.lang">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="ArrayOfString">
- <xsd:complexContent>
- <xsd:restriction
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:stns="java:com.yellowshirt.management.wlpi"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="java:com.yellowshirt.management.wlpi">
- <xsd:complexType name="TaskCounts">
- <xsd:sequence>
<xsd:element name="inactive" maxOccurs="1" type="xsd:int"
minOccurs="1" />
<xsd:element name="completed" maxOccurs="1" type="xsd:int"
minOccurs="1" />
<xsd:element name="total" maxOccurs="1" type="xsd:int" minOccurs="1" />
<xsd:element name="overdue" maxOccurs="1" type="xsd:int"
minOccurs="1" />
<xsd:element name="pending" maxOccurs="1" type="xsd:int"
minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>
[dyncmplx.zip] -
Error while creating consumer proxy
Hi all,
I am trying to consume WSDL using consumer proxy, but facing an error.
Attribute "transport" in <soapbind:binding> has incorrect value.
The transport attribute in WSDL has below value:
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
I am an ABAP person, do not have exposure to PI.
Regards,
Sneha NikamHi Sneha,
The message in the wsdl is the structure that will used by the proxy (in sproxy) to create data dictionary entries. Without any message, it is not possible to create a consumer proxy. Also, there are data types that are not supported in PI 7.1, see this link Supported XML Schema and WSDL (SAP NW PI 7.1) Excel List
Please check the WSDL.
Hope this helps,
Mark -
Hi all,
Is it possible to throw custome exceptions from web services that can be caught in the clients of the Web service? If so, how can this be done?
I have a java class exposed as a web service that throws custom exceptions, but the client gets these exceptions as SOAP Fault. I see that the client proxy, that is generated by 9iAS, has the method signature for all my methods as throwing Exceptions. Does this need to be changed manually in the client proxy??
Any ideas would be greatly appreciated.
Regards,
VijayI see a problem with how OC4J 10.1.3 handles custom exceptions in a bottom-up web service. I think the DP4 version handled this better unless I 'm missing something.
I have a bottom-up web service whose methods throw a custom exception declared as:
public class RemoteWebServiceException extends Exception implements Serializable {
// 4 attributes
The WSDL generated by OC4J 10.1.3DP4 (works better for me) looks like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<complexType name="RemoteWebServiceException">
<sequence>
<element name="faultActor" type="string" nillable="true"/>
<element name="faultCode" type="QName" nillable="true"/>
<element name="faultString" type="string" nillable="true"/>
<element name="localizedMessage" type="string" nillable="true"/>
<element name="message" type="string" nillable="true"/>
</sequence>
</complexType>
The WSDL generated by OC4J 10.1.3 (creates problems for me) looks like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<complexType name="RemoteWebServiceException">
<sequence/>
</complexType>
My exception class has not changed. My build process has not changed. I use oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy task. Do I need to pass some extra flags with the OC4J 10.1.3 production version to get the same behavior as DP4? -
How to set input/output "use" attribute in the WSDL file of BPEL process?
Hello,
I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process).
I wrote manually the corresponding WSDL file for my BPEL process, where I stipulated for the operations exposed by my process ( in <soap:binding> tag) the value of the attribute "style" to "rpc". Also, for each <input> and <output> of the operations (inside the <operation> tag), I set manually the attributes "use" to the values "encoded". Something like this:
<operation name="getCustomers">
<soap:operation style="rpc" soapAction="getCustomers"/>
<input>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
</input>
<output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
</output>
</operation>
The issue is that, when the BPEL process is built and deployed, the WSDL file generated automatically by BPEL (based on the one manually writen) set the values of the "use" attributes to "literal". This is what is generated:
<operation name="getCustomers">
<soap:operation style="rpc" soapAction="getCustomers" />
<input>
<soap:body use="literal" namespace="http://acm.org/samples" />
</input>
<output>
<soap:body use="literal" namespace="http://acm.org/samples" />
</output>
</operation>
Is there any chance to keep the original values (written by hand) for the "use attributes?
Many thanks in advance!
Regards,
MarinelI am not sure I understand your question. If you want all your BPEL service to be rpc still by default, you can change the templates: C:\eclipse\plugins\bpelz_0.9.XXX\templates.
The BPEL PM engine support both style of invocation.
I hope this helps. -Edwin
Maybe you are looking for
-
Thanks in advance
-
I cannot open all email attachment files(pdf, doc, etc) in Mail on my New IPad. I installed all viewer apps but I am not able to click and hold to select the option of viewer apps to open the files. I dont get the "open with" option when I click on t
-
Creating Zip of multiple zip files without storing at perticular location
Hi, I am having any number of files in folder called as OUTPUTFILES.And i want to create a zip file of that files e.g.If there are 3 files in outputfolder namly A,B,C..THen zips are as follows A.zip B.zip C.zip and after that i want one zipfile of th
-
AWR Statistics gathering is taking hours...
Is it normal in 10g to have the following job run for hours? EXEC SYS.DBMS_SCHEDULER.RUN_JOB('GATHER_STATS_JOB'); It takes like 4 hours sometimes to run - we run it once a day..Thank you!
-
OVM disks for RAC implementation
Dear All is there any guide available on how can you create the disks for RAC ASM in OVM 3.3.1 using a fiber channel block level storage? Thanks George