Web Service trims off type-names?

Hi,
I'm trying to set up a web service on OAS, and have come across a strange problem which I can't figure out. The problem is that the result I get from the web-service doesn't follow the WSDL which was generated by JDeveloper. Some of the type-names of my complex types seems to be "trimmed" off.
For instance, I've got one complex type called (see the WSDL at the end of my post):
"com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO"
but my webservice returns it as:
"com_ibm_no_slf_wesla_v_LandbrukseiendomDetaljerDTO"
And the length of this type-name seems to differ when I try to deploy the webservice on different environments (development, test, etc). If I try to deploy the web-service without the pre-generated WSDL, the "on-the-fly"-generated WSDL also has trimmed-off type-names.
Is there some kind of setting for the maxlength of this name or something?
Any ideas are very much appreciated :)
Thanks,
Morten
Here are some details of my webservice.
I've got a regular java-class which I want to expose: EnterpriseWSBD, with an interface IEnterpriseWS.
My web.xml contains the following:
<web-app>
<description>Web Application</description>
<servlet>
<servlet-name>EnterpriseWS</servlet-name>
<servlet-class>oracle.j2ee.ws.StatelessJavaRpcWebService</servlet-class>
<init-param>
<param-name>class-name</param-name>
<param-value>com.ibm.no.slf.wesla.bd.ws.EnterpriseWSBD</param-value>
</init-param>
<init-param>
<param-name>interface-name</param-name>
<param-value>com.ibm.no.slf.wesla.bd.ws.IEnterpriseWS</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>EnterpriseWS</servlet-name>
<url-pattern>/EnterpriseWS</url-pattern>
</servlet-mapping>
<session-config>
          <session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
          <extension>html</extension>
          <mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
          <extension>txt</extension>
          <mime-type>text/plain</mime-type>
</mime-mapping>
</web-app>
My WSDL contains the following (generated by JDeveloper):
<definitions
name="EnterpriseWS"
targetNamespace="http://com/ibm/no/slf/wesla/bd/ws/EnterpriseWSBD.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://com/ibm/no/slf/wesla/bd/ws/EnterpriseWSBD.wsdl"
xmlns:ns1="http://com.ibm.no.slf.wesla.bd.ws/IEnterpriseWS.xsd">
<types>
<schema
targetNamespace="http://com.ibm.no.slf.wesla.bd.ws/IEnterpriseWS.xsd"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="com_ibm_no_slf_wesla_value_ws_ForetakFinnDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="orgnr" type="string"/>
<element name="hentLbrAdresse" type="boolean"/>
<element name="hentBedriftsknytninger" type="boolean"/>
<element name="hentEierknytninger" type="boolean"/>
<element name="hentRoller" type="boolean"/>
<element name="visOpphorte" type="boolean"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="orgnr" type="string"/>
<element name="navn" type="string"/>
<element name="enhetsType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="aktiv" type="int"/>
<element name="registrertIMva" type="int"/>
<element name="adresse" type="ns1:com_ibm_no_slf_wesla_value_ws_AdresseDetaljerDTO"/>
<element name="eiendomsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO"/>
<element name="rolleListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO"/>
<element name="bedriftsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_CodeFactoryDTO" jdev:packageName="com.ibm.no.slf.wesla.value" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="codeValue" type="string"/>
<element name="description" type="string"/>
<element name="domain" type="string"/>
<element name="shortDescription" type="string"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_AdresseDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="adresseLinje1" type="string"/>
<element name="adresseLinje2" type="string"/>
<element name="adresseLinje3" type="string"/>
<element name="poststed" type="ns1:com_ibm_no_slf_wesla_value_PoststedDTO"/>
<element name="stedUtland" type="string"/>
<element name="land" type="ns1:com_ibm_no_slf_wesla_value_LandDTO"/>
<element name="telefon" type="string"/>
<element name="telefax" type="string"/>
<element name="mobiltelefon" type="string"/>
<element name="epost" type="string"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_PoststedDTO" jdev:packageName="com.ibm.no.slf.wesla.value" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="nyttPostnr" type="string"/>
<element name="postnr" type="string"/>
<element name="poststed" type="string"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_LandDTO" jdev:packageName="com.ibm.no.slf.wesla.value" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="landKode" type="string"/>
<element name="landNavn" type="string"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_EiendKnytningDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="eierType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="eiertilknytning" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="landbrukseiendom" type="ns1:com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO"/>
<element name="person" type="ns1:com_ibm_no_slf_wesla_value_ws_PersonDetaljerDTO"/>
<element name="foretak" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="landbrukseiendomId" type="int"/>
<element name="hovedNr" type="ns1:com_ibm_no_slf_wesla_value_ws_HovednummerDTO"/>
<element name="bruksnavn" type="string"/>
<element name="aktiv" type="int"/>
<element name="grunnkrets" type="int"/>
<element name="koordinatKilde" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="koordinatSystem" type="int"/>
<element name="nord" type="int"/>
<element name="ost" type="int"/>
<element name="arealtall" type="ns1:com_ibm_no_slf_wesla_value_ws_ArealtallDTO"/>
<element name="eiendomsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO"/>
<element name="bedriftsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO"/>
<element name="grunneiendomListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_HovednummerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="kommuneNr" type="string"/>
<element name="gardsNr" type="int"/>
<element name="bruksNr" type="int"/>
<element name="festeNr" type="int"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_ArealtallDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="jord" type="int"/>
<element name="skog" type="int"/>
<element name="annet" type="int"/>
<element name="fulldyrket" type="int"/>
<element name="overflatedyrket" type="int"/>
<element name="innmarksbeite" type="int"/>
</all>
</complexType>
<complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_EiendKnytningDTO[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_BedrKnytningDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="brukerType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="driftstilknytning" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="drift" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="fratraadt" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="prodlopenr" type="int"/>
<element name="eierskifteDato" type="string"/>
<element name="bedrift" type="ns1:com_ibm_no_slf_wesla_value_ws_BedriftDetaljerDTO"/>
<element name="foretak" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_BedriftDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="orgnr" type="string"/>
<element name="lbrBedriftId" type="int"/>
<element name="lopenrD" type="int"/>
<element name="navn" type="string"/>
<element name="daJordD" type="int"/>
<element name="aktiv" type="int"/>
<element name="landbrukseiendom" type="ns1:com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO"/>
<element name="bedriftsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO"/>
</all>
</complexType>
<complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_BedrKnytningDTO[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="hovedNr" type="ns1:com_ibm_no_slf_wesla_value_ws_HovednummerDTO"/>
<element name="type" type="int"/>
<element name="aktiv" type="int"/>
<element name="etablertDato" type="string"/>
<element name="eierforhold" type="int"/>
<element name="arealtall" type="ns1:com_ibm_no_slf_wesla_value_ws_ArealtallDTO"/>
</all>
</complexType>
<complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_PersonDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="fodselsnr" type="string"/>
<element name="fornavn" type="string"/>
<element name="etternavn" type="string"/>
<element name="aktiv" type="int"/>
<element name="status" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="adresse" type="ns1:com_ibm_no_slf_wesla_value_ws_AdresseDetaljerDTO"/>
<element name="eiendomsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO"/>
<element name="rolleListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO"/>
</all>
</complexType>
<complexType name="com_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
<all>
<element name="rolleType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="fratraadt" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
<element name="prioritert" type="int"/>
<element name="person" type="ns1:com_ibm_no_slf_wesla_value_ws_PersonDetaljerDTO"/>
<element name="foretak" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
</all>
</complexType>
<complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</types>
<message name="getEnterpriseDetails0Request">
<part name="searchDTO" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakFinnDTO"/>
<part name="userId" type="xsd:string"/>
<part name="password" type="xsd:string"/>
</message>
<message name="getEnterpriseDetails0Response">
<part name="return" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
</message>
<portType name="EnterpriseWSBDPortType">
<operation name="getEnterpriseDetails">
<input name="getEnterpriseDetails0Request" message="tns:getEnterpriseDetails0Request"/>
<output name="getEnterpriseDetails0Response" message="tns:getEnterpriseDetails0Response"/>
</operation>
</portType>
<binding name="EnterpriseWSBDBinding" type="tns:EnterpriseWSBDPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getEnterpriseDetails">
<soap:operation soapAction="" style="rpc"/>
<input name="getEnterpriseDetails0Request">
<soap:body use="encoded" namespace="EnterpriseWS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output name="getEnterpriseDetails0Response">
<soap:body use="encoded" namespace="EnterpriseWS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="EnterpriseWS">
<documentation>
* Business Delegator.
* - Enterprise
</documentation>
<port name="EnterpriseWSBDPort" binding="tns:EnterpriseWSBDBinding">
<soap:address location="http://localhost:8888/lregws/EnterpriseWS"/>
</port>
</service>
</definitions>

Thanks for the notice, Bryan.
This is actually a bug, and it is actually connected to the length of the APPLICATION NAME pluss the response-xml and the file path of the application (i think).
There are currently two workarounds:
1) Make the application-name longer than a given value (think this is based on the path of the application, not quite sure yet). Just try different long names. This will prevent the response-xml to be truncated
2) Make type-names shorter (duh :p).
I had to use approach 1, since I should not change my wsdl.. other people are already using it
This probably doesn't explain this strange behaviour good enough, but hopefully you'll get your webservices to work :)
Morten

Similar Messages

  • Can "SPML Web Service Complex Data Type field" take multiple values ?

    In Generic Technology Connector's -SPML design parameters section, Can we give multiple values in SPML Web Service Complex Data Type field?
    If not, how can i call methods directly instead of calling them through a values of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type?
    I need 'SPML Web Service Complex Data Type' to hold multiple values.And based on the request it has to initiate appropriate method of action.
    Presently i have three methods add,modify and delete which i am calling through a single value of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type.
    I want to replace this single value with multiple menthods , so that a direct interaction between the method,OIM and target can be established.
    Edited by: 821054 on 16/02/2011 04:23

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • HotFix 2 breaks web service results of type xsd:anyType

    I have a client that accesses a number of web services that
    return results as type xsd:anyType (the results are complex XML
    hierarchies that change according to db values). Before HotFix 2,
    in in my ResultEvent.RESULT event handler, I could get access to
    the result via the ResultEvent.result property. But since HotFix 2,
    the ResultEvent.result property is always null for web services
    results of type xsd:anyType (for other result types,
    ResultEvent.result is correct).
    This is a major nuisance!! I assume this is a bug, so can
    anyone suggest any workarounds while I wait for Adobe to fix it? I
    can access the result as a string via the EventResult.message.body
    member. And from there, I can parse the XML, and perform an
    XML-to-ValueObject conversion... does that sound reasonable? Does
    anyone have an examples of XML-to-ValueObject conversion code to
    help get me started?
    Any hints or tips would be most welcome ;)
    Thanks!
    Paul C.

    This has become a huge problem for me... it's boken my
    applications in *many* places :(
    Is there no-one with any suggestions?
    Paul C.

  • Web service call fails - type mismatch

    Hi All
    I hope someone can help, as I have been struggling with this issue for a few days. If I have missed any useful information off of this post, please ask and I will try to supply.
    I am trying to call a web service, but contantly receiving the error:
    "{http://springframework.org/spring-ws}ValidationError:cvc-elt.4.3: Type 'xsd:long' is not validly derived from the type definition, 'idField', of element 'documentId'."
    An example of the call to the webservice is:
    <cfscript>
    getDocumentAsPdfRequest = structNew();
    getDocumentAsPdfRequest.documentId = 12017988;
    getDocumentAsPdfRequest.ignoreUnsupportedConversion = 0;
    ws = createObject("webservice", "#wsdldocumenturl#");
    ws.setUsername("#wsdlusername#");
    ws.setPassword("#wsdlpassword#");
    myresult = ws.getDocumentAsPdf(getDocumentAsPdfRequest);
    </cfscript>
    <cfdump var="#myresult#">
    the webservice definition is:
    getDocumentAsPdfRequest type getDocumentAsPdfRequest 
    Returns the document as a pdf if possible
    documentId type idField - type long with restriction minInclusive(1000) maxInclusive(9223372036854775807) 
    Id of the document to be converted to pdf
    ignoreUnsupportedConversion type boolean 
    Specifying true for this will return the original document without converting - if a conversion is not possible
    the webservice xml is:
    <xs:element name="getDocumentAsPdfRequest"> 
    <xs:annotation> 
    <xs:documentation>Returns the document as a pdf if possible</xs:documentation></xs:annotation>
    <xs:complexType> 
    <xs:sequence> 
    <xs:element name="documentId" type="tns:idField"> 
    <xs:annotation> 
    <xs:documentation>Id of the document to be converted to pdf</xs:documentation></xs:annotation></xs:element>
    <xs:element name="ignoreUnsupportedConversion" type="xs:boolean"> 
    <xs:annotation> 
    <xs:documentation>Specifying true for this will return the original document without converting - if a conversion is not possible</xs:documentation></xs:annotation></xs:element>
    </xs:sequence></xs:complexType></xs:element>
    I have tried using javacast("long", "12017988"), but the same error is shown
    any help or advise gratefully received.
    Thanks,
    Darren

    I forgot to mention that I have verified that this service works from SoapUI, the issue seams to be the way that ColdFusion is handling the documentId element.
    If it is helpful the WSDL code is here (note I have only pasted the parts that are relevant to this method):
    <xs:element name="getDocumentAsPdfRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    - <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Returns the document as a pdf if possible</xs:documentation>
    </xs:annotation>
    - <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:element name="documentId" type="tns:idField" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Id of the document to be converted to pdf</xs:documentation>
    </xs:annotation>
    </xs:element>
    - <xs:element name="ignoreUnsupportedConversion" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Specifying true for this will return the original document without converting - if a conversion is not possible</xs:documentation>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    And the reponse:
    <xs:element name="getDocumentAsPdfResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    - <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="content" type="xs:base64Binary" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    and the operation element:
    <wsdl:operation name="getDocumentAsPdf" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> 
    <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    - <wsdl:input name="getDocumentAsPdfRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    <soap:header message="tns:credentials" part="credentials" use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    </wsdl:input>
    - <wsdl:output name="getDocumentAsPdfResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    </wsdl:output>
    </wsdl:operation>
    not sure if that would be helpful, but thought I would post incase.
    Does anyone have any ideas as to why that error would be being generated?
    Thanks,
    Darren

  • Accessing a web service with complex types

    Hi I have been struggling with this web service for a while
    now....
    I am trying to send input parameters that are composed by :
    applicant name( name, surname, .....) and applicant input address(
    hse no, street, postcode...) Applicant dob(dob)....I am using
    <cfscript> tag to pass these parameters...Now my problem is
    do i need to put each complex type inside its own <cfscript>
    tag???
    ie:
    stName = structNew();
    stName.Title = "#Mr#";
    stName.forename = "Man";
    stName.othernames = " NA";
    stName.Applicant = "Yellow";
    stName.suffix="";
    stName.dob = createDate(1972,06,05);
    and do this for applicant address? or could i enclose this in
    under the same cfscript tag??
    Any help would be appreciated...thanks
    critical

    Check out
    http://hcc.musc.edu/research/shared_resources/xml_complex_types_to_cf_structure_notes.cfm
    The last part of that link is .cfm - not sure why its getting
    cut off.

  • PL/SQL Web Service element, operation, part names etc all in lowecase

    I have generated web services from pl/sql packages on a 11.2.0.1.0 database using JDev 11.1.1.5.0. In the generated wsdl all the names are in lowercase. Is there anyway of getting these names to match the case the objects are stored in the database?
    Eg. CREATE OR REPLACE TYPE sampleEntity AS OBJECT (entityNumber INTEGER
    ,entityType VARCHAR2(1)
    ,displayName VARCHAR2(400))
    But in the wsdl they are all lowercase:-
    Eg.
    <xsd:complexType name="sampleentity">
    <xsd:sequence>
    <xsd:element name="entitynumber" type="int" nillable="true"/>
    <xsd:element name="entitytype" type="string" nillable="true"/>
    <xsd:element name="displayname" type="string" nillable="true"/>
    Thanks.
    Steve.

    Ok, this sounds like a known bug ( Bug 5908689 ) in 10.1.3.1, but this was specific to non-Windows platforms. Are you on Linux/Solaris or any other platform? It might or might not be the same problem you are hitting but it does seem quite close (can't say for sure without a close investigation, I am afraid!)
    In any case, this bug is fixed in the 10.1.3.4 patchset (besides quite a few other fixes and enhancements) - so would recommend you to first apply the 10.1.3.4 patchset and retest. The patchset is available on My Oracle Support (formerly Metalink) under Patch 7272722. Or you could go a step ahead, and apply the 10.1.3.5 patchset (Patch 8626084) instead which is the latest patchset for OracleAS 10.1.3.x.
    HTH,
    Yogesh

  • You cannot add a job with a duplicate name, as a web service already exists with name ... please rename the job and try again

    We are attempting to add a web service job and getting a duplicate name issue.  I believe we have a caching issue where this job name may already exist but we are unable to see it on the web services status page.
    Is there a data services repository database table where I can find these web services jobs listed and clean it up from the backend?

    There is no option there that shows me if it is being used as a web service.  Here is my issue with some screen shots.
    I look at my current web service enabled jobs looking for B_JOB_CP_MDR_to_GW_EMP but it is not in the list.
    I attempt to add it from repository DWXDS9
    It throws an error and tells me there is already a web service with this name...
    Now there has got to be an internal data services table somewhere that has this job listed as a web service.  I am just trying to figure out what that table may be to determine if we can do some type of cleanup on it so we can add this job again as a web service (so it is visible to us).

  • Web Service and Complex Types

    Hi, I am creating a web service based on a java method that returns a Java bean. This is translated into a complex type in the wsdl containing the beans member variables. During this generation JDeveloper names the complex type as package structure + javabean class name. Is there anyway to change this to just javabean class name ? Secondly is there any way to change the case of the complex type element names (so the initial character is upper case)? I realise that in an ideal world what JDev generates would be OK but I have to meet a spec produced by someone else.
    Thanks for any help.

    Does anyone have any experience with this ?

  • Pl Help......Web services with complex types

    Hi,
    I have deployed a web service on OC4J (9.02) having a complex type input and a complex type return. The web service is implemented as a stateless session bean and
    the relevant web.xml for the deployment is:
    <servlet>
    <servlet-name>ZipLookupManager</servlet-name>
    <servlet-class>oracle.j2ee.ws.SessionBeanWebService</servlet-class>
    <init-param>
    <param-name>jndi-name</param-name>
    <param-value>ZipLookupManagerBean</param-value>
    </init-param>
    <init-param>
    <param-name>class-name</param-name>
    <param-value>com.indus.banner.components.cdyne.ZipLookupManagerBean</param-va
    lue>
    </init-param>
    <init-param>
    <param-name>interface-name</param-name>
    <param-value>com.indus.banner.components.cdyne.IZipLookupManager</param-value
    >
    </init-param>
    <init-param>
    <param-name>custom-bean-qname</param-name>
    <param-value>
    com.indus.banner.components.cdyne.LatLongReturn,
    http://cdyne.components.banner.indus.com,
    LatLongReturn,
    org.apache.soap.encoding.soapenc.BeanSerializer,
    org.apache.soap.encoding.soapenc.BeanSerializer
    </param-value>
    </init-param>
    <init-param>
    <param-name>custom-bean-qname</param-name>
    <param-value>
    com.indus.banner.components.cdyne.ZipState,
    http://cdyne.components.banner.indus.com,
    ZipState,
    org.apache.soap.encoding.soapenc.BeanSerializer,
    org.apache.soap.encoding.soapenc.BeanSerializer
    </param-value>
    </init-param>
    </servlet>
    The web service deploys correct. I have all the relevant jars in the %J2EE_HOME%\lib folder. However, when I call the web service from a standalone client I get the following error:
    java.lang.ClassNotFoundException:
    org.apache.soap.encoding.soapenc.BeanSerializer
    at
    oracle.j2ee.ws.GeneratedClassLoader.findClass(GeneratedClassLoader.ja
    va:48)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    at oracle.j2ee.ws.BaseWebService.initQnameMap(BaseWebService.java:602)
    at oracle.j2ee.ws.RpcWebService.init(RpcWebService.java:453)
    at
    oracle.j2ee.ws.SessionBeanRpcWebService.init(SessionBeanRpcWebService
    .java:54)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at
    com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.
    java:1956)
    at
    com.evermind.server.http.HttpApplication.findServlet(HttpApplication.
    java:4355)
    at
    com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApp
    lication.java:2484)
    Please advise!
    Rizwan

    Hi all,
    I haven't heard back from anyone. Is this forum alive still? I have entered a TAR on metalink on this issue but they say that apparently this was a defect under 9.02 and has been fixed under 9.04.
    Please help.
    Many thanks in advance.
    Rizwan

  • Best Practices Web Services - Complex Data Types

    Can someone provide some best practices documentation or info that for customers using CR against web services? Speciffically any information on complex data types such as  String[] or Address.
    Thanks
    Ian S

    And That's what I did.
    name.cfc is the component that has complex data types
    created.

  • Web Services with Authentication - User Name and Password.

    How to create a web service and web service client where the need is to authenticate using SOAP Header based authentiacation. The authentication is to be based on UserName and Password in the SOAP Header.
    Regards
    Pramod.

    Dear Pierluigi Vernetto
    What is meant when they say to include SOAPHeader with the parameters UserName, Password for Authentication. How this type of authentication is done.Can you please provide some code snipped to facilitate. I am new to the web services and did successfully a web service generation and client generation using WSDL.
    WSDL Snippet :
    - <wsdl:operation name="RegisterService">
    <soap12:operation soapAction="http://www.abc.com/webservices/RegisterService" style="document" />
    - <wsdl:input>
    <soap12:body use="literal" />
    <soap12:header message="tns:RegisterServiceAuthenticate_Info" part="Authenticate_Info" use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap12:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.abc.com/webservices/">
    - <s:element name="RegisterService">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1" name="InputText">
    - <s:complexType>
    - <s:sequence>
    <s:any />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="RegisterServiceResponse">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1" name="RegisterServiceResult">
    - <s:complexType>
    - <s:sequence>
    <s:any />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="Authenticate_Info" type="tns:Authenticate_Info" />
    - <s:complexType name="Authenticate_Info">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
    </s:sequence>
    <s:anyAttribute />
    </s:complexType>
    If i simply create the web service using the WSDL , will the Authenticate_Info will be taken care of.
    What needs to be done for the Client side .jsp code and how this information of UserName and Password will be passed while making the call to the web service.
    regards
    Pramod.

  • Error while deploying a web service whose return type is java.util.Date

    Hi
    I have written a simple web service which takes in a date input (java.util.Date) and returns the same date back to the client.
    public interface Ping extends Remote
    * A simple method that pings the server to test the webservice.
    * It sends a datetime to the server which returns the datetime.
    * @param pingDateRequest A datetime sent to the server
    * @returns The original datetime
    public Date ping(Date pingDateRequest) throws RemoteException;
    The generation of the Web service related files goes smoothly in JDeveloper 10g. The problem arises when I try to deploy this web service on the Oracle 10g (10.0.3) OC4J standalone. it gives me the following error on the OC4J console :
    E:\Oracle\oc4j1003\j2ee\home\application-deployments\Sachin-TradingEngineWS-WS\
    WebServices\com\sachin\tradeengine\ws\Ping_Tie.java:57: ping(java.util.Date) in com.sachin.tradeengine.ws.Ping cannot be applied to (java.util.Calendar) _result  = ((com.sachin.tradeengine.ws.Ping) getTarget()).ping
    (myPing_Type.getDate_1());
    ^
    1 error
    04/03/23 17:17:35 Notification ==&gt; Application Deployer for Sachin-TradingEngineWS-WS FAILED: java.lang.InstantiationException: Error compiling :E:\Oracle\oc4j1003\j2ee\home\applications\Sachin-TradingEngineWS-WS\WebServices: Syntax error in source [ 2004-03-23T17:17:35.937GMT+05:30 ]
    I read somewhere that the conversion between java to xml datatype and vice versa fails for java.util.Date, so it is better to use java.util.Calendar. When I change the code to return a java.util.Calendar then the JDeveloper prompts me the following failure:
    Method Ping: the following parameter types do not have an XML Schema mapping and/or serializer specified : java.util.Calendar.
    This forces me to return a String data.
    I would appreciate if someone can help me out.
    Thanks
    Sachin Mathias
    Datamatics Ltd.

    Hi
    I got the web service working with some work around. But I am not sure it this approach would be right and good.
    I started altogether afresh. I did the following step :
    1. Created an Interface (Ping.java) for use in web Service as follows :
    public interface Ping extends Remote{
    public java.util.Date ping(java.util.Date pingDateRequest)
    throws RemoteException;
    2. Implemented the above interface in PingImpl.java as follows :
    public class PingImpl implements Ping
    public java.util.Date ping(java.util.Date pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    3. Compiled the above 2 java files.
    4. Generated a Stateless Java Web Service with the help of JDeveloper. This time the generation was sucessful.(If I had "java.util.Calendar" in place of "java.util.Date" in the java code of the above mentioned files the web service generation would prompt me for error)
    5. After the generation of Web Service, I made modification to the Ping interface and its implementing class. In both the files I replaced "java.util.Date" with "java.util.Calendar". The modified java will look as follows :
    Ping.Java
    =========
    public interface Ping extends Remote{
    public java.util.Calendar ping(java.util.Calendar pingDateRequest)
    throws RemoteException;
    PingImpl.Java
    ================
    public class PingImpl implements Ping
    public java.util.Calendar ping(java.util.Calendar pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    6. Now I recompile both the java files.
    7. Withour regenerating the Web Service I deploy the Web Service on OC4j 10.0.3 from JDeveloper. This time the deployment was sucessful.(The Deployment fails if I don't follow the step 5.)
    8. Now I generated a Stub from JDeveloper and accessed the stub from a client. It works fine. Here if you see the Stub code it takes java.util.Date as a parameter and returns a java.util.Date. (Mind you I am accepting a java.util.Calendar and returning the same in my Web Service interface. Step 5)
    The confusing thing is the Serialization and Deserialization of Data from Client java data to Soap message and Soap message to Server java data.
    From Client to SOAP :
    java.util.Date to datetime
    From SOAP to Server :
    datetime to java.util.Calendar
    From Server to SOAP :
    java.util.Calendar to datetime
    From SOAP to Client :
    datetime to java.util.Date (I am not able to understand this part of the conversion)
    Any help or inputs would be appreciated.
    Thanks
    Sachin Mathias

  • Creating PL/SQL web services from object types

    Hello
    Jdeveloper, pl/sql web-services working successfully with object types.If we want to send the web-services to the client, do we need to send the entire folder that is created in the web-services folder of the external oc4j..?
    Creating the client process:
    we are using the wsdl file that is generated in the web-services and adding to the partner link to Invoke the operations of web-services. Is there any other way to invoke the webservices?Could any one please suggest me?
    Thanking you
    Malathi

    Hello
    Accessing the pl/sql webservices from the application server:
    I have created pl/sql webservice using the nested tables. This will insert the object data into database tables.after deplying the webservice into external oc4j, when I test the webservice locally with url: http://localmachine:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    The above web-services working and I am able to insert into the database tables.
    Same when I want to access through the application server, I have changed the wsdl file soap address as
    <soap:address location="http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort"/>
    When I access this url, I am able to give the input data
    http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    but the out from the web-service is:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>Error creating target: DBConnImpMftest.ObjWebserviceUser</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Err from the OC4j log:<PAYLOAD>
    <MSG_TEXT>An error occurred for port: {http://dbconnimpmftest/Nested_Webserv.wsdl}Nested_WebservSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creating target: dbconnimpmftest.Nested_WebservUser.</MSG_TEXT>
    </PAYLOAD>
    Could any one help me to solve the above issue?
    Kind regards
    Malathi

  • Windows Web Services - Unsupported media type

    Hi,
    I'm trying to migrate a web service from .NET WCF to C++ Windows Web Services API. I generated .c and .h files using WSDL, create few wrappers and incorporated it into the C++ code and try it using a gSOAP client. Sadly, it wasn't working.
    Here is the response from the WWS:
    HTTP/1.1 415 Unsupported Media Type
    Server: Microsoft-HTTPAPI/2.0
    Date: Mon, 14 Jul 2014 10:50:23 GMT
    Connection: close
    Content-Length: 0
    I debug it for a while, and found out, that WWS apparentely cannot handle action parameter in Content-Type.
    Content-Type: text/xml; charset=utf-8; action="http://tempuri.org/IReferenceClockWebService/SetRecordTimeLeftDiff"
    After I remove the action parameter, everything is working.
    Why is this happening. Isn't an action parameter common part of SOAP HTTP requests? Is there any workaround?
    Thanks in advance.

    Hi,
    I'm trying to migrate a web service from .NET WCF to C++ Windows Web Services API. I generated .c and .h files using WSDL, create few wrappers and incorporated it into the C++ code and try it using a gSOAP client. Sadly, it wasn't working.
    Here is the response from the WWS:
    HTTP/1.1 415 Unsupported Media Type
    Server: Microsoft-HTTPAPI/2.0
    Date: Mon, 14 Jul 2014 10:50:23 GMT
    Connection: close
    Content-Length: 0
    I debug it for a while, and found out, that WWS apparentely cannot handle action parameter in Content-Type.
    Content-Type: text/xml; charset=utf-8; action="http://tempuri.org/IReferenceClockWebService/SetRecordTimeLeftDiff"
    After I remove the action parameter, everything is working.
    Why is this happening. Isn't an action parameter common part of SOAP HTTP requests? Is there any workaround?
    Thanks in advance.

  • Web Service Client using computer name instead of IP

    Hi,
    I've built a small EJB web service with a JAVA application deployed via JAVA Web Start for the client.
    I testing the application on our LAN and it worked perfectly on one machine. I tested it on another machine and I get an erro along the lines of:
    HTTP Transport Error java.net.UnknownHostException: Ian
    "ian" being the computer name of the server machine hosting the EJB we service. I presume the program worked on the first machine as it new which computer on the LAN was "ian", whereas the second machine didnt'.
    The applications were built in NetBeans and the only place i can see the "ian" address being used is in the client WSDL file:
      <service name="VOQAOnline">
        <port binding="tns:VOQAOnlineSEIBinding" name="VOQAOnlineSEIPort">
          <soap:address location="http://ian:8080/VOQAOnline-EJBModule/VOQAOnline"/>
        </port>
      </service>Netbeans seems determined to keep this address using the computer name, even if i delete the web service refernce add it again using the server ip address. I've also tried editing the WSDL file in the client JAR post compile, however the error still occurs, so maybe the problem is somewhere else?
    The App server I am using is JBoss 4.0.3. Maybe there is a configuration on the server i need to do?
    Eventually I plan to deploy the client app over the Internet, so using the computer name is clearly insufficient and it needs to use the IP. It's really annoying how it works on some machines on the network but not others. Any ideas on how to solve this?

    You can associate a Virtual Host to the loopback IP address 127.0.0.1 read about Virtual Hosts here: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
    But with the above configuration alone you can access your app via http://somedomainname.com only on your local machine, no one else on the internet will see it.

Maybe you are looking for

  • Can't open .term Terminal.app files from command line

    Howdy. I use Terminal.app constantly for ssh'ing into numerous remote machines. On my G4 Powerbook I have simply created .term files with customized colors, titlebars, and an appropriate ssh execution string for each machine/userid combination, which

  • HELP ME PLEASE: MY TIME CAPSULE IS NO LONGER WORKING FOR ME

    Due to a recent move,  my Time Capsule doesn't seem to have the range & strength that it once did. - A Local Internet Provider (MEDIACOM) installed their Router for our Internet/Internet Phone Service.  - Due to the required use of the Provider's Rou

  • How do I edit the order of songs within an album?

    I have my Ipod plugged in and need to fix the order of songs on a few albums. Can someone please let me know how to do this? Thanks a lot.

  • User Manual for Solution Manager

    Friends, For a first time user of Solution Manager, is there documentation available to guide one through the rigour? Maybe a user manual on how to effectively harness Solution Manager during the project implementation cycle. Thanks and Regards, Same

  • Compatible with your plan/Data pak required/Requires data pkg $9.99 or higher

    1) When I go to "Upgrade your phone"/"Select a phone or device" I see 59 results. When I click "Compatible with your current plan" the number goes to down to 52 results. However, 23 of them say "Data pak required" and another 3 say "Requires data pkg