Webservice cffunction returntype="xml" complex datatype problems WSDL

Ho do I create complex data types in my WSDL when using
returntype="xml"??
I have tried a few different things but for the life of me I
cannot figure it out.

If you open the Developer Guide of CFMX7
(cfmx7_dev_guide.pdf) page 909, there is a description how to
handle complex data types.
Laksma

Similar Messages

  • Complex datatypes for webservices

    Hello all,
    Question from customer:
    "...Its not possible to user webservices in htmldb, that user complex types for paramater or return.
    Creation htmldb webservice formulars work only with literal soap data types. But soap xsd support complex types or arrays. Thus, we can not use htmldb for accessing such services. .."
    If customer uses complex datatypes it appears a ora-20001.
    Is there a way to use complex datatypes for webservices in htmldb or will it be included in a new release or patch?
    thanks
    Hendrik

    Hi,
    Did you solve this one?
    I'm having the exact same problem, trying to communicate with Oracle Wireless webservices from htmldb,
    which kind of made me dissapointed because they are both Oracle products! Basically what wireless wants is an array input and htmldb complains about this!
    Any solutions?
    Magnus

  • Web Service Complex Datatypes

    Does ColdFusion support nested complex data types when building Web Services?  See example CFCs below.  I keep getting a ServiceMethodNotFoundException.  In my SubmitNoticeOfAppt.cfc, the cfargument data type is NoticeOfAppointment.CFC which references other CFCs that define complex data types. The complex types are needed to support a really complex XML document that must be NIEM (National Information Exchange Model) compliant.  Originally tried passing the NIEM XML doument as a string, but receive deserialization errors, encounter child element.  Could get around the error by wrapping the XML string in <![CDATA[ ... ]]>, but this convention is not NIEM compliant.
    DocumentIssueDate.cfc
    <cfcomponent displayname="DocumentIssueDate" output="false">
       <cfproperty name="Date" type="date" required="No">
    </cfcomponent>
    DocumentAugmentation.cfc
    <cfcomponent displayname="DocumentAugmentation" output="false">
       <cfproperty name="DocumentIssueDate" type="any" required="No">
    </cfcomponent>
    DocumentIdentification.cfc
    <cfcomponent displayname="DocumentIdentification" output="false">
       <cfproperty name="IdentificationID" type="numeric" required="Yes">
       <cfproperty name="IdentificationCategoryDescriptionText" type="string" required="No">
    </cfcomponent>
    NoticeOfAppointment.cfc
    <cfcomponent displayname="NoticeOfAppointment" output="false">
       <cfproperty name="DocumentIdentification" type="any" required="Yes">
       <cfproperty name="DocumentAugmentation" type="any" required="Yes">
    </cfcomponent>
    SubmitNoticeOfAppt.cfc
    <cfcomponent style="document">
      <cffunction name="SubmitNoticeOfAppt" returnType="string" output="false" access="remote"> 
        <!---Arguments--->
          <cfargument name="NoticeOfApptXml" type="NoticeOfAppointment" required="Yes">
          <cfreturn "Notice of Appointment successfully received">
      </cffunction>
    </cfcomponent>
    Sample NoticeOfAppointment.xml       (Stripped down, actual message contains almost 200 elements with 20+ complex datatypes)
    <NoticeOfAppointment>
      <DocumentIdentification>
        <IdentificationID>000021199</IdentificationID>
        <IdentificationCategoryDescriptionText/>
      </DocumentIdentification>
      <DocumentAugmentation>
        <DocumentIssueDate>
          <Date>2011-04-07</Date>
        </DocumentIssueDate>
      </DocumentAugmentation>
    </NoticeOfAppointment>

    Coldfusion should be able to nest complex data types in your web service (after all, that's what the cfproperty tag was designed for).  Unfortunately, I have more experience consuming complex web services than designing them in CF. My Recommendation - inspect your web service WSDL using a tool that will generate the sample SOAP XML that will be needed to consume your web service.  You should be able to tell from that XML what the issue is - could be a missing namespace in your XML or strange nesting, etc.
    We use SOAPSonar from Crosscheck networks - they have a feww personal version that will allow you to inspect your web service interface and it will even generate the sample XML needed to call it via SOAP.
    Hope that helps.

  • Complex datatype in Web Services

    The work involved in handling complex datatype as part of the Web Services
    (JDev 9.0.3) seems to be very complex and not very well documented. (as
    far as I can tell).
    Is there an easy way for a Java client to bypass the deserialization altogether
    and just get the raw SOAP XML as returned from a Web Service.
    From the Raw XML, we could use the regular parsing tools to do whatever
    is necessary with the data. For example, I would like to transform the
    XML returned by using a simple XSL transformation.
    This would bypass the complexity of mapping all elements of an object that
    I would not really use in Java anyway. (I would pass the result of the XSL
    transformation to a 'C' program (yes I know it's ugly, but I still use 'C' for
    processing data...)
    I would really appreciate if anybody had experience in doing something like
    that.
    Thanks.

    Hi Denis - I think I might have run into a similar prob. I have been able create and successfully test a web service as long as the input object types are Strings. When I try to do this with a complex data type it fails. "Complex" in this case means an object containing 2 string and 1 double (i.e. not a standard java.lang objects for which serializers are predefined).
    Did you encounter the following error message?
    [SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to deserialize a &apos;http://IWidgetConsumer.xsd:Widget&apos; using encoding style &apos;http://schemas.xmlsoap.org/soap/encoding/&apos;. [java.lang.IllegalArgumentException]]
    Process exited with exit code 0.
    Thanks
    X

  • Exception in XML Parser (format problem?)

    Hi Experts,
    I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
    <RecordSet>
         <Row1>
                       <row1 - field1>
                       <row1 - field2>
                       <row1 - field3>
         </Row1>
         <Row2>
                       <row2 - field1>
                       <row2 - field2>
                       <row2 - field3>
         </Row2>
         <Records>
              <Record1>
                        <Record1-Field1>
                        <Record1-Field1>
                        <Record1-Field1> 
              </Record1>
              <Record2>
                        <Record2-Field1>
                        <Record2-Field1>
                        <Record2-Field1> 
              </Record2>
         </Records>
    </RecordSet>
    We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error  in RWB CC Monitoring.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    Any ideas, why this error we are getting.....
    Thanks in advance,
    Regards,
    Vasu

    Hi Vasu,
    Not in the Mapping of IR.
    In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
    You have to take the same input file that what ever you are having now.
    So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
    Check whether you have any Date Format Values are comming from the input file.
    Regards
    Seshagiri

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • Xml schema validation problem

    Hi All
    How to tackle this xml schema validation problem
    i am using the sample code provided by ORacle technet for xml
    schema validation in the Oracle database(817).
    The sample code works perfectly fine.
    Sample as provided by http://otn.oracle.com/tech/xml/xdk_sample/archive/xdksample_093001.zip.
    It works fine for normal xml files validated against
    xml schema (xsd)
    but in this case my validation is failing . Can you let me know why
    I have this main schema
    Comany.xsd
    ===========
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.company.org"
    xmlns="http://www.company.org"
    elementFormDefault="qualified">
    <xsd:include schemaLocation="Person.xsd"/>
    <xsd:include schemaLocation="Product.xsd"/>
    <xsd:element name="Company">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Person" type="PersonType" maxOccurs="unbounded"/>
    <xsd:element name="Product" type="ProductType" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    ================
    which includes the following 2 schemas
    Product.xsd
    ============
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xsd:complexType name="ProductType">
    <xsd:sequence>
    <xsd:element name="Type" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    ==============
    Person.xsd
    ===========
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xsd:complexType name="PersonType">
    <xsd:sequence>
    <xsd:element name="Name" type="xsd:string"/>
    <xsd:element name="SSN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    =================
    now when i try to validate a xml file against Company.xsd
    it throws an error saying unable to find Person.xsd.
    no protocol error
    Now where do i place these 2 schemas(.xsd files) Person & product
    so that the java schemavalidation program running inside Oracle
    database can locate these files
    Rgrds
    Sushant

    Hi Jinyu
    This is the java code loaded in the database using loadjava called by a wrapper oracle stored procedure
    import oracle.xml.parser.schema.*;
    import oracle.xml.parser.v2.*;
    import java.net.*;
    import java.io.*;
    import org.w3c.dom.*;
    import java.util.*;
    import oracle.sql.CHAR;
    import java.sql.SQLException;
    public class SchemaUtil
    public static String validation(CHAR xml, CHAR xsd)
    throws Exception
    //Build Schema Object
    XSDBuilder builder = new XSDBuilder();
    byte [] docbytes = xsd.getBytes();
    ByteArrayInputStream in = new ByteArrayInputStream(docbytes);
    XMLSchema schemadoc = (XMLSchema)builder.build(in,null);
    //Parse the input XML document with Schema Validation
    docbytes = xml.getBytes();
    in = new ByteArrayInputStream(docbytes);
    DOMParser dp = new DOMParser();
    // Set Schema Object for Validation
    dp.setXMLSchema(schemadoc);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setPreserveWhitespace (true);
    StringWriter sw = new StringWriter();
    dp.setErrorStream (new PrintWriter(sw));
    try
    dp.parse (in);
    sw.write("The input XML parsed without errors.\n");
    catch (XMLParseException pe)
    sw.write("Parser Exception: " + pe.getMessage());
    catch (Exception e)
    sw.write("NonParserException: " + e.getMessage());
    return sw.toString();
    This is the code i used initially for validating a xml file against single xml schema (.xsd) file
    In the above code could u tell how to specify the second schema validation code for the incoming xml.
    say i create another Schemadoc for the 2nd xml schema.
    something like this with another parameter(CHAR xsd1) passing to the method
    byte [] docbytes1 = xsd1.getBytes();
    ByteArrayInputStream in1 = new ByteArrayInputStream(docbytes1);
    XMLSchema schemadoc1 = (XMLSchema)builder.build(in1,null);
    DOMParser dp = new DOMParser();
    How to set for the 2nd xml schema validation in the above code or can i combine 2 xml schemas.
    How to go about it
    Rgrds
    Sushant

  • How to Create WebService (the Server, not Client) from existing WSDL

    Does anyone have any suggestions on how to create a WebService from existing WSDL.  I have been asked to implement a WebService (the Server) based on WSDL from a standards based consortium.  I have created several WebServices in the past and the generated WSDL under my control.  Does Axis WebServices generate WebService service stub Java code?

    Hai
      you can create stubs for AXis webservices also
      for help use the following link
    http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page1

  • Is it possible to call a webservice with just the url to its WSDL

    hi all
    can anyone tell me if it is possible to call a webservice with just the url to its WSDL file. must we create the proxy class for webservice client? thanks

    if you are in the context of a J2EE 1.4 container, you do not need to generate any stub, you can use either a dynamic proxy mechanism or dynamic invocation.
    check JWSDP tutorial.

  • Creating Complex Datatypes in Application Module Service Interface

    HI All,
    I need to create the complex datatype as response in Application module service interface(Custom method).
    Is there any way to create it.
    I am able to create when i have simple datatype as response, Whereas the complex type is not able to create.
    Please give me some suggestion.
    Thanks
    Prabhat

    Hi
    I followed the below discussion and got the solution
    Create Web Services and return a complex type with ADF
    Thanks
    Prabhat

  • External definition import WSDL complex type problem

    Hi,
    i have created a webservice using apache axis and created an external definition for the service. You can see the respective WSDL recognized by XI below. The service takes an array of adresses. Unfortunately, when I want to define the message mapping, theres only the array but not the address attributes. What would be a proper definition of the service?
    Cheers,
    Heiko
    ===================================================
    1. WSDL from external defintion:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://localhost:8080/axis/services/AdressService">
         <wsdl:types>
              <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://localhost:8080/axis/services/AdressService" targetNamespace="http://localhost:8080/axis/services/AdressService">
                   <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
                   <xsd:complexType xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="AddressDto">
                        <xsd:sequence>
                             <xsd:element name="ID" type="xsd:string" nillable="true" />
                             <xsd:element name="name" type="xsd:string" nillable="true" />
                             <xsd:element name="strasse" type="xsd:string" nillable="true" />
                             <xsd:element name="ort" type="xsd:string" nillable="true" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="ArrayOfAddressDto">
                        <xsd:complexContent>
                             <xsd:restriction base="soapenc:Array">
                                  <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="impl:AddressDto[]" />
                             </xsd:restriction>
                        </xsd:complexContent>
                   </xsd:complexType>
              </xsd:schema>
         </wsdl:types>
         <wsdl:message name="writeAddressDataResponse" />
         <wsdl:message name="writeAddressDataRequest">
              <wsdl:part xmlns:generateduniqueprefix3="http://localhost:8080/axis/services/AdressService" name="addresses" type="generateduniqueprefix3:ArrayOfAddressDto" />
         </wsdl:message>
    </wsdl:definitions>
    2. XSD extracted from WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://localhost:8080/axis/services/AdressService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://localhost:8080/axis/services/AdressService">
      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
      <xsd:element name="addresses" type="ArrayOfAddressDto" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" />
      <xsd:complexType name="ArrayOfAddressDto" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
        <xsd:complexContent>
          <xsd:restriction base="soapenc:Array">
            <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="impl:AddressDto[]" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
          </xsd:restriction>
        </xsd:complexContent>
      </xsd:complexType>
    </xsd:schema>
    ??? Where are the atributes of the address here ???

    Hi Heiko,
    XI does not support the use of soapenc:array. Please refer to http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16556272 regarding the use of this construct.
    Greetings Stephan

  • Complex datatypes - WebServices/APIs

    I'm attempting to learn how to manage Web Services/APIs. I'm using ColdFusion 8 and the webservice is open (no key or password required). With my createobject I don't see where to include the operation or method (see list below) like was done with the <cfinvoke>. With <cfinvoke> I had save the document as wscfc.cfm is it the same with createobject? Thanks for the suggestions TheRealAgentK.
    At the bottom of this page is a “Second Attempt” using the Put and <cfinvoke>. This modified code that was sent to me by BKBK (Thanks!). The error message follows the code.
    I'm getting an error message (see below). Any help with this API or sample connections would be greatly appreciated.
    ?WSDL link below:
    http://www.spraci.com/services/soap/index.php?wsdl
    My script below (operation/method = area_list):
    <cfscript>
    stUser = structNew();
    stUser.appkey = "";
    stUser.username = "";
    stUser.password = "";
    stUser.area = "x0usa";
    stUser.name = "";
    ws = createObject("webservice", "http://www.spraci.com/services/soap/index.php?wsdl");
    myReturnVar = ws.echoStruct(stUser);
    </cfscript>
    <cfoutput>#myReturnVar#</cfoutput>
    Link to API notes:
    C:\Users\djones\Documents\Affiliates\spraci\Webmaster Services SPRACI API SOAP area_list.mht
    Operations /Methods below?
    http://www.xmethods.net/ve2/WSDLAnalyzer.po;jsessionid=GuNmIhBRDeHT2vRN_L4c7nK8
    area_list
    area_getinfo
    event_list
    event_getinfo
    event_show
    event_add
    event_update
    user_getinfo
    user_getarea
    Error Message Below:
    Web service operation echoStruct with parameters {{USERNAME={},PASSWORD={},AREA={x0usa},APPKEY={},NAME={}}} cannot be found.
    The error occurred in C:\ColdFusion8\wwwroot\ybah8r\CMS\Progs\eraseme3.cfm: line 17
    15 : stUser.name = "";
    16 : ws = createObject("webservice", "http://www.spraci.com/services/soap/index.php?wsdl");
    17 : myReturnVar = ws.echoStruct(stUser);
    18 : </cfscript>
    19 :
    Second attempt:
    <cfset AreaFetch = createobject("java","java.util.Hashtable")>
    <cfscript>
    AreaFetch.put("appkey", "");
    AreaFetch.put("username", "");
    AreaFetch.put("password", "");
    AreaFetch.put("area", "x0usa");
    AreaFetch.put("name", "");
    </cfscript>
    <cfinvoke
    webservice = "http://www.spraci.com/services/soap/index.php?wsdl"
    method="area_list"
    inputStructArray ="#AreaFetch#"
    returnvariable="foo"
    >
    <cfdump var="#foo#">
    Error message:
    Web service parameter name data cannot be found in the provided parameters {INPUTSTRUCTARRAY}.
    The error occurred in C:\ColdFusion8\wwwroot\ybah8r\wscfc.cfm: line 41
    39 : webservice = "http://www.spraci.com/services/soap/index.php?wsdl"
    40 : method="area_list"
    41 : inputStructArray ="#AreaFetch#"                       
    42 : returnvariable="foo"
    43 : >

    Hi,
    Did you solve this one?
    I'm having the exact same problem, trying to communicate with Oracle Wireless webservices from htmldb,
    which kind of made me dissapointed because they are both Oracle products! Basically what wireless wants is an array input and htmldb complains about this!
    Any solutions?
    Magnus

  • How to pass values to XML complex type of a Webservice using PL/SQL

    HI,
    I need to call a web service from PL/SQL that has an complex type element. That complex type element has 4 child elements each of integer type.
    I want to pass values for this complex type using SOAP_API.add_parameter but I can't understand how to pass the values.
    <xsd:element name="getBestFit">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element maxOccurs="1" minOccurs="1" name="circleId" type="xsd:string"/>
                        <xsd:element maxOccurs="1" minOccurs="1" name="usage" type="Q1:UsageInfoType"/>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
    <complexType name="UsageInfoType">
         <sequence>
              <element maxOccurs="1" minOccurs="1" name="a1" type="int"/>
              <element maxOccurs="1" minOccurs="1" name="a2" type="int"/>
              <element maxOccurs="1" minOccurs="1" name="a3" type="int"/>
              <element maxOccurs="1" minOccurs="1" name="a4" type="int"/>
         </sequence>
    </complexType>
    Please help me in getting a solution here.
    Thanks in advance.

    Have you tried doing a google search on "SOAP_API.add_parameter" to see what comes back? I see a lot of hits come back so hopefully one of those will help you. I've never used soap_api as I used utl_http to make WS calls. This required me to build the SOAP message (aka XML of a specific nature) by hand and then pass it to the WS using utl_http. How this approach is done via SOAP_API, I can't say.

  • Include xml schema in the WSDL of the web service

    Hi,
    I have a bpel process where I want to call several web service, so therefore the web services should reference the same xsd schema. I use JDeveloper and Oracle PM 10.1.3.3.0.
    I have a problem with including the schema in the wsdl of the web service, and I receive an error at deploying the web service.
    For including the schema I tried, things like:
    <types>
    <xsd:include schemaLocation="\C:/genschema.xsd"/>
    </types>
    Error compiling :C:\orabpel\bpel\system\appserver\oc4j\j2ee\home\applications\BuecherApp-LagerService-WS\WebServices: Error instantiating compiler: Web service artifact generation failed:oracle.j2ee.ws.common.tools.api.WsdlValidationException: model error: element "{http://lagerservice/types/}pruefeBuecherAufLagerElement" not found.
    or
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
         <import namespace="http://lagerservice/types/"
    schemaLocation="genschema.xsd" />
         </schema>
    </types>
    Error instantiating compiler: Web service artifact generation failed:java.lang.InstantiationException: IO Error parsing imports in C:\orabpel\bpel\system\appserver\oc4j\j2ee\home\application-deployments\BuecherApp-LagerService-WS\WebServices\server-wsdl\LagerService.wsdl : Unable to find/read file WEB-INF/wsdl/genschema.xsd
    the file is in the required directory WEB-INF/wsdl, and also the current directory.
    Can anyone help please?
    Ela

    ... and here is the solution:
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
         <import namespace="http://lagerservice/" schemaLocation="file:///c:/genschema.xsd" />
         </schema>
    </types>

  • (261705413) Q RPCC-21 Missing text/xml MIME-type for WSDL files?

    Q<RPCC-21> Would it mess up the SOAP operations that clients do when using the
    WSDL in a dynamic client to put a text/xml mime type in the WSDL-providing jsp?
    A<RPCC-21>: It is a known issue that the MIME-type for WSDL files is not appropriately
    transmitted so some web browsers will not identify an appropriate helper application
    when they are viewed (for Netscape just press Ctrl-U to view the source). This,
    however, does not affect the dynamic client as evidenced by the example code seen
    in the code demonstration.
    Adam

    SR,
    You probably already have the answer by now, but I just came across the same problem and found the answer elsewhere.
    The trick is to have the JavaMail jar in your classpath BEFORE the JAF jar. Given the habit of my development environment to sort jars alphabetifally it had me stumped for a bit.
    Good luck
    Marc

Maybe you are looking for