WSDL Conformance using BEA Generated WSDL and MS WSDL.exe

I have a web service. This service has ran with no problem for several months. There has been NO interoperability issues up to this point. Recently, I added a new method within the Web Service to use SOAP with attachment. I have this correctly working with a Java Client following the BEA example. However, when I attempt generating the Mircosoft client using the WSDL created by Weblogic (using the web-services.xml file), the warning appears in the process:
// CODEGEN: The operation binding 'getDocument' from namespace 'http://webservice.product.dept.company.com' was ignored. Missing soap:body output binding.
When I go look at the console from running the WSDL.exe command, the following warning appears:
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2706: A wsdl:binding in a DESCRIPTION MUST use the value of "literal" for the u
se attribute in all soapbind:body, soapbind:fault, soapbind:header and soapbind:
headerfault elements.
When I look through the list, I see the getDocument method does not have an output section. This is the new method we created using SOAP attachment.
There are no types defined in the WSDL:
<types />
This is the message part for the specific method call:
<message name="getDocument">
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" name="userId" type="partns:string" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" name="docId" type="partns:string" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" name="docDetails" type="partns:string" />
</message>
<message name="getDocumentResponse">
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" name="getDocumentReturn" type="partns:base64Binary" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" name="docDetails" type="partns:string" />
</message>
This is int the port type area of the WSDL, operation section for the specific method:
<operation name="getDocument" parameterOrder="userId docId docDetails">
<input message="tns:getDocument" />
<output message="tns:getDocumentResponse" />
</operation>
This is the binding operation section of the WSDL for the specific method:
<operation name="getDocument">
<soap:operation soapAction="" style="rpc" />
<input>
<soap:body use="encoded" namespace="http://webservice.product.dept.company.com" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<mime:multipartRelated>
<mime:part>
<soap:body use="encoded" namespace="http://webservice.product.dept.company.com" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</mime:part>
<mime:part>
<mime:content part="getDocumentReturn" type="*/*" />
</mime:part>
</mime:multipartRelated>
</output>
</operation>
This is the section from the web-services.xml file:
<operation name="getDocument" method="getDocument" component="bean">
<params>
<param style="in" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string" location="body" name="userId" class-name="java.lang.String"></param>
<param style="in" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string" location="body" name="docId" class-name="java.lang.String"></param>
<param style="inout" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string" location="body" name="docDetails" class-name="java.lang.String"></param>
<return-param xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:base64Binary" location="attachment" name="getDocumentReturn" class-name="javax.activation.DataHandler"></return-param>
</params>
</operation>
Thanks for any comments and suggestions in advance.

I got around this by unjaring the generated source jar into a "generated/src" directory and put that directory on the build path.
Andy O

Similar Messages

  • What about session memory when using BEA Weblogic connection pooling?

    Hi,
    consider a web application, allowing database connections via a BEA Weblogic 8.1 application server. The app-server is pooling the oracle connections. The oracle database is running in dedicated server mode.
    How are the database requests from the web app served by the connection pool from BEA?
    1) Does one oracle session serve more than one request simultanously?
    2) Does BEA serialize the requests, which means, that a session from the pool is always serving only one request at a time?
    If (1) is true, than what about the session memory of Oracle sessions? I understand, that things like package global variables are beeing stored in this session private memory. If (1) is true, the PL/SQL programmer has the same situation, as with programming an Oracle databas in "shared server" mode, that is, he should not use package global variables etc.
    Thankful for any ideas...
    Message was edited by:
    Xenofon

    Xenofon Grigoriadis wrote:
    Hi,
    consider a web application, using BEA between client and an Oracle Database (v9i). BEA is pooling the oracle connections. The oracle database is running in dedicated server mode.
    How are the database requests from the web app beeing served by the connection pool from BEA?
    1) Does one oracle session serve more than one request simultanously?no.
    2) Or does BEA serialize the requests, which means, that a session from the pool is always serving only one request at a time?
    Reading "Configuring and Using WebLogic JDBC" from weblogic8.1 documentation, I read:
    "... Your application "borrows" a connection from the pool, uses it, then returns it to the pool by closing it...."
    What do you mean by returning the connection by closing it? Tbe server will either return the connection to the pool or close it...When application code does typical jdbc code, it obtains
    a connection via a WebLogic DataSource, which reserves an
    unused pooled connection and passes it (transparently wrapped)
    to the application. The application uses it, and then closes
    it. WebLogic intercepts the close() call via the wrapper, and
    puts the DBMS connection back into the WebLogic pool.
    The reason, why I as an Oracle programmer ask this is, because every session (=connection)
    in Oracle has its own dedicate, private memory for things like global PL/SQL variables.
    Now I want to figure out, if you have to careful in programming your databases, when
    one Oracle session (=connection) is serving many weblogic requests.It is serving many requests, but always serially. Do note however, that we
    also transparently cache/pool prepared and callable statements with the
    connection so repeat uses of the connection will be able to get already-made
    statements when they call prepareStatement() and prepareCall(). These
    long-lived statements will each require a DBMS-side cursor.
    >
    Thankful for any ideas or practical experience...
    Message was edited by:
    mk637Joe

  • How to generate WS and WSDL for proper working DS under ALDSP 3.0?

    Hi,
    Ive got small problem with generating WebService and WSDL for proper working DataService in AL Data Service Studio.
    Whats the worse, I cant find any good documentation showing how to do it step by step in the new development enviroment.
    Currently Im doing it like:
    1) right click on DS and then Create Web Service Map
    2) when Im trying to View WSDL for created (in previous point) WS Map, after a while for deployment, I get Error 404--Not Found
    3) when Im trying to Save WSDL As ... , after showing where it should to be saved, nothing happens
    4) At Test Web Service Map option Ive got (in ZIP archive there is error trace from WebLogic console):
    http://localhost:7001/xyz/abc/test/something.ws?WSDL
    failed due to weblogic.testclient.WsdlParseFailedException: Not Found
    My questions are:
    i) how I can generate WS for DS?
    ii) when there will be some tutorials to download for ALDSP 3.0?

    Some new facts about this situation.
    A moment ago Ive made all the things like in edocs:
    http://edocs.bea.com/aldsp/docs30/install/migration.html#wp1081343
    After that problems still exists and what is the worst - the same problem as at the first time.
    So:
    1) Problem of not migrated kind="private" to visibility="private"
    2) Problem of migrating the files encoded in CP1250 if they got charakters encoded in CP1250
    3) I know that proces of migration from multiple imports to the same namespace within XSDs must be done in manual way but problem still exist
    4) There are some issue like this:
    "[ld:xXx_PIDataServices/cache/order/order.ds]: The return type of the read function "{ld:xXx_PIDataServices/cache/order/order}setOrderStatus" with arity 1 does not match the Data Service target (element) type "{services.cache.integration.amg}setOrderOut"."
    When I remove kind="read" from pragma then its going to be valid.
    In short time we will try to contact with our local BEA support.
    PS Right now I was trying to import another project (sample one for Workshop 8.1 - <BEA_HOME>\weblogic81\samples\workshop\SamplesApp) and it also didnt go smoothly :/
    Edited by PiotrGalas at 02/01/2008 4:20 AM

  • Wsimport generates new and slightly different wsdl?

    Hi all,
    I am building a web service project from a wsdl. I use JDK 1.6, jax-ws 2.1 and Maven 3.0.3. The wsimport task in Maven (which, for my understanding, uses the wsimport from jax-ws) parses my wsdl and generates a working service. I can also build a client using jax-ws. So far, it's all nice. What is slightly unpleasant is the following: The wsdl I get from the application with urlforwebservice?wsdl seems to be generated by wsimport, in any case it is different from what I imported. Firstly, I wonder why this is. Shouldn't the interface be fixed? What is really not good is that the generated wsdl has no proper parameter name, they are all just called param0, param1 etc. This makes the generated client hard to use. Can somebody shed some light on that? Does somebody know how to get proper parameter names? Sorry if this is obvious, I couldn't find anything about it.
    Thanks

    If you auto-sync, try disabling the "Show artwork" option for your iPod and re-sync it. Then, re-enable the Show artwork option and sync again. This will re-build the artwork index on your iPod and may fix the problem.

  • Creating WSDL file using Netbeans and JAX-WS

    I have created a web service called calculator in Netbeans IDE.
    I build the project and deployed in Tomcat.
    When I accessed WSDL file i getting as follows
    *<?xml version="1.0" encoding="UTF-8" ?>*
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://actions.calculator.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://actions.calculator.com/" name="calculatorService">
    - <types>
    - <xsd:schema>
    *<xsd:import schemaLocation="http://localhost:8080/calculator/calculator?xsd=1" namespace="http://actions.calculator.com/" />*
    *</xsd:schema>*
    *</types>*
    etc.......
    here schema is imported from another file...
    I need schema to included in the WSDL file itself.
    How can i get a WSDL file like this??
    I am using Netbeans 5.5 and JAX-WS 2.0

    Hi,
    Change the <soap:binding style="document"... to <soap:binding style="rpc"... and see if that works.
    I'm not sure how to get <soap:binding style="document"... working yet - I'm not that experienced in web services yet.
    Hope this helps and is not too late.
    Regards,
    Greg Nye

  • How can I customize the auto-generated WSDL when using a PL/SQL webservice?

    My webservice returns a refcursor as an ArrayOfString. (I followed the sample code.) Instead of everything being returned in one large array, I need to create a correct record hierarchy, like <rec1><fld1></fld1></rec1>, etc.
    As far as I know, this grouping has to be done in a WSDL file. However, following this sample, the WSDL is auto-generated and overwritten with each launch of the webservice.
    Am I missing something, or are there other secrets/tips?
    thanks

    Very Nice:) Thanks!
    1. I added this to my HTM HEADER:
    <script language="JavaScript" type="text/javascript">
    function test_javaprompt () {
    var Hours = prompt("How Many Hours?");
    $x('P142_HOURS').value = Hours;
    doSubmit()
    </script>
    2. I Created an Item:
    P142_HOURS
    3. I Created a Button:
    TEST_JAVA
    a. In the Button area for, Optional URL Redirect, I selected- Target is a URL
    b. URL Target- javascript:test_javaprompt();
    When I press the Button then it does Exactly what I want it to do.
    Except....
    Ultimately, I do not want this javascript assigned to the button.
    I would like to run this javascript when the value of a DatePicker Item, (P142_DROPS_SUBMITTED) is changed.
    If you can help me with that then I'll be forever grateful:)
    -Gary

  • Failed to generate client proxy from WSDL definition for this service

    Hi,
    I am using Weblogic 8.1 SP1. I created a webservice which takes a XMLBean object
    as parameter and returns another XMLBean object. The web service works fine when
    tested using the workshop's test browser but when i am trying to generate a client
    proxy trough the workshop's test browser, it displays this warning:
    Failed to generate client proxy from WSDL definition for this service
    and does not generate the proxy.
    I'll appreciate any thoughts on this.
    Thanks
    Sandeep

    Hi Sandeep,
    Could you try invoking clientgen [1] directly to see if this properly
    consumes your WSDL?
    Thanks,
    Bruce
    [1]
    http://e-docs.bea.com/wls/docs81/webserv/anttasks.html#1080160
    Sandeep wrote:
    >
    Hi,
    I am using Weblogic 8.1 SP1. I created a webservice which takes a XMLBean object
    as parameter and returns another XMLBean object. The web service works fine when
    tested using the workshop's test browser but when i am trying to generate a client
    proxy trough the workshop's test browser, it displays this warning:
    Failed to generate client proxy from WSDL definition for this service
    and does not generate the proxy.
    I'll appreciate any thoughts on this.
    Thanks
    Sandeep

  • Error when trying to create a web service from a wsdl file using jdeveloper

    Hello,
    I'm using the latest jdeveloper and jdk 6 update 20 on solaris sparc 10.
    When I'm trying to create a web service from a wsdl on the java EE 1.5 platform i get the following error:
    Validation failed:
    java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    I've tried the endorsed mechanism with the latest jaxws-api.jar and jaxb-api.jar packages with no help.
    It works fine when i use the java EE 1.4 platform....
    The full Error description:
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)+
    +     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)+
    +     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.setDescription(JavaWebService.java:745)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.topdown.TDJaxWsSpecifyWsdlPanel.setDescription(TDJaxWsSpecifyWsdlPanel.java:364)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)+
    +     at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)+
    +     at java.lang.Thread.run(Thread.java:619)+
    Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)+
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)+
    +     at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)+
    +     ... 8 more+
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)+
    +     at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)+
    +     at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)+
    +     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:597)+
    +     at oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)+
    +     at $Proxy34.getJaxWsSeiInfo(Unknown Source)+
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)+
    +     ... 11 more+
    Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:186)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:209)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:164)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:75)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)+
    +     at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)+
    +     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
    +     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
    +     at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64)+
    +     at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:75)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:751)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:539)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:181)+
    +     at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:251)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)+
    +     at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:117)+
    +     at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)+
    +     at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:647)+
    +     ... 20 more+
    Caused by: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at java.lang.Class.getMethod(Class.java:1605)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:184)+
    +     ... 40 more+
    Thanks,
    Roy.

    Guys,
    You are asking about an issue that was a pain in the nick for me few months ago. The problem is that you won't find mych help here as I figured out that Apex geeks here either did not do much webservices or ended up hating it as i do :) . This is an error that can be due many different reason, let me ask you this:
    1- Does your the other system you are trying to call through webservices using HTTPS ?
    2- If yes, did you create a valid oracle wallet for that https connection ?
    3- Make sure you are using the correct URL ( am sure you do, just double check )
    4- If using a proxy, then you have to define that in the web service reference creation page
    provide more info and I hope I can help you with this,
    Sam
    Please reward good answers by marking them correct or helpful!

  • Invoking C# WS from java axis proxy generated from the same WSDL

    I am trying to transparently use the same java interface for invoking a java axis WS and a C# WS generated from the same WSDL interface.
    I believe the problem may be that the .NET web service which is generated from the WSDL file, is dynamically exposing a WSDL file which is not exactly the same as the original WSDL used to generate the abstract C# class with "wsdl.exe"
    When I try to invoke the C# web service with the java axis client I get the error message:
    "Server did not recognize the value of HTTP Header SOAPAction: ."
    Any suggestions about how to be able to use the same client interface from java, to invoke a C# web service and a java axis web service supporting (i.e. generated from) the same WSDL ?

    The JNI method name in the .h file is different to that in the .c file.

  • Generate Service Control for WSDL: NullPointerException

    Steps to demonstrate the problem: in Platform Workshop (8.1.4) in Integration mode, create a Tutorial Process Application, then for RequestQuote.jpd, Generate WSDL file, then for that WSDL, Generate Service Control.
    <pre>ERROR: requestquote/RequestQuoteContract.wsdl Line 0, Col 0: java.lang.NullPointerException
    </pre>
    The WSDL is valid (Axis WSDL2Java and Eclipse-Webtools are both okay with it, assuming I delete some cw and http namespaces they don't understand).
    The problem is when the XSD is too deeply nested giving XML like /one/two/three, whereas /one/two is okay for WLI. This is valid XSD, but apparently too deep for WLI to understand.
    Any help debugging this more or working around it would be appreciated. Is there a way to run this process from the command line, so I might debug this more on my own? I'd like to give the stackTrace for the NPE, but WLI Workshop doesn't show that.
    Thanks,
    Mike

    Hi guys,
    I had the same problem and what I had to do was import the Schema project that holds all schemas included in the WSDL that I was trying to generate a control from. In my case I had the Schema project because I was the one that developed the WebService too, in your case it's possible that you have to create an Schema project and somehow extract the schemas from de WSDL and create .xsd files to put in the project.
    After doing this you will see the popup window (when you try to generate a service control from the WSDL file) asking if you want to use the XMLBeans generated from the xsd files in your Schema project otherwise it will generate inner classes based in the WSDL's schemas, you must choose YES (use the existing XMLBeans) and that should be it for creating a Service Control based on a WSDL file.
    Hope this helps in most cases.
    Regards,
    Israel Williams
    Software Architect
    JWM Solutions
    [email protected]

  • Generate web services form WSDL as part of build process

    Hi, I am using Jdev drop7build2.
    I have wsdl and schema types. From Jdeveloper we can generate webservices using "web services from WSDL". But I want to generate web services as part of my build process.
    Is it possible to do this as part of build process ? any ant tasks or API etc ?
    Thanks
    -Siva

    Arrrgggg
    Drop 7 is an Oracle-internal build, as far as I know.
    You should be asking on an internal Oracle list.
    John

  • 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

  • JDev 11g - WSDL generation using HTTP binding - WSDL2Java

    I'm using JDev 11.1.1.3.0.  Trying to create a WSDL that uses only an HTTP binding (non-SOAP) to recreate a web service I'm trying to connect to.  My hope is to create the WSDL and use the 'Java Web Service from WSDL' tool (WSDL2Java) to create the Java client code for connecting to the web service.  (No, the author of the web service does not support SOAP. Sigh).
    First off, I do not see an option to create a straight HTTP binding using the 'WSDL Editor/Create Binding' dialog, (only SOAP11, SOAP12, Java, EJB, JCA, JMS, Custom).  So I manually created the binding based on what I could find in the w3c.  Here it is slightly modified with bogus namespaces and URL addresses:
    <?xml version="1.0" encoding="UTF-8" ?>
    <definitions targetNamespace="https://my.server.com/context/"
                 xmlns="http://schemas.xmlsoap.org/wsdl/"
                 xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
                 xmlns:tns="https://my.server.com/context/"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
                 xmlns:types="https://my.server.com/context//types"
                 xmlns:java="http://schemas.xmlsoap.org/wsdl/java/"
                 xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/">
      <types>
        <xsd:schema targetNamespace="https://my.server.com/context//types"
                    elementFormDefault="qualified"/>
        <xsd:schema>
          <xsd:import schemaLocation="MyRequest.xsd" namespace="https://my.server.com/context//types"/>
        </xsd:schema>
        <xsd:schema>
          <xsd:import schemaLocation="MyResponse.xsd" namespace="https://my.server.com/context//types"/>
        </xsd:schema>
        <xsd:schema>
          <xsd:import schemaLocation="Common.xsd" namespace="https://my.server.com/context//cmn"/>
        </xsd:schema>
      </types>
      <portType name="AvailabilityServices">
        <operation name="RequestAvailability">
          <input message="tns:AvailabilityRequestMessage"/>
          <output message="tns:AvailabilityResponseMessage"/>
        </operation>
      </portType>
      <message name="AvailabilityRequestMessage">
        <part name="part" element="types:PNARequest"/>
      </message>
      <message name="AvailabilityResponseMessage">
        <part name="part" element="types:PNAResponse"/>
      </message>
      <binding name="AvailabilityServicesHTTPBinding"
               type="tns:AvailabilityServices">
        <http:binding verb="POST"/>
        <operation name="RequestAvailability">
          <http:operation location="RequestAvailability"/>
          <input>
            <mime:content type="application/xml"/>
          </input>
          <output>
            <mime:mimeXml/>
          </output>
        </operation>
      </binding>
      <service name="AvailabilityService">
        <port name="AvailabilityServicesPort"
              binding="tns:AvailabilityServicesHTTPBinding">
          <http:address location="https://my.server.com/context/"/>
        </port>
      </service>
    </definitions>
    I really don't know if the the input and output tags for the binding are correct.  I've tried <mime:mimeXml/> for both.  I basically want to just send and receive the XSD schemas as straight XML over HTTP.  Is this right?
    Secondly, when trying to generate the Java code from this WSDL, the generation fails with an IndexOutOfBoundsException:
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/C:/_Developer11g1_1_3_0/work/Web/PriceAvailability/public_html/WEB-INF/wsdl/PriceAvailability.wsdl": Index: 0, Size: 0
        at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)
        at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)
        at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)
        at oracle.jdeveloper.webservices.model.java.JavaWebService.setDescription(JavaWebService.java:745)
        at oracle.jdevimpl.webservices.wizard.jaxrpc.topdown.TDJaxWsSpecifyWsdlPanel.setDescription(TDJaxWsSpecifyWsdlPanel.java:364)
        at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)
        at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)
        at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
        at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/C:/_Developer11g1_1_3_0/work/Web/PriceAvailability/public_html/WEB-INF/wsdl/PriceAvailability.wsdl": Index: 0, Size: 0
        at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)
        at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)
        at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)
        at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)
        at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)
        ... 8 more
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "file:/C:/_Developer11g1_1_3_0/work/Web/PriceAvailability/public_html/WEB-INF/wsdl/PriceAvailability.wsdl": Index: 0, Size: 0
        at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)
        at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)
        at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)
        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:597)
        at oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)
        at $Proxy39.getJaxWsSeiInfo(Unknown Source)
        at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)
        ... 11 more
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.consolidateInterfaceMappings(WSDLToJavaModelBuilder.java:689)
        at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.consolidateInterfaceMappings(WSDLToJavaModelBuilder.java:682)
        at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.build(WSDLToJavaModelBuilder.java:196)
        at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:656)
        ... 20 more
    Anybody know how to write a WSDL with a non-SOAP HTTP binding and then generate Java from it?
    Thanks

    Okay, I'll check it out.  I know the newest version of SoapUi handles REST services (not sure if that's what I'm trying to attempt) so maybe I could 'ping' the web service using it.
    But seeing how this is a JDeveloper forum, I was hoping somebody could help me create a WSDL with HTTP bindings using the JDeveloper tool set, or at least identify if I have correctly defined the HTTP binding in my sample WSDL.  Does JDev 11g not have this functionality?

  • WSDL Wizard w/ SOAP, RequestContext, ComplexType and WSSE

    Is it possible to run the wizard against a WSDL that uses a Request Context, SOAP, WSSE security and required input as a complexType?
    I've tried it and while it generated all the service and value objects, any time I try invoking the service, I get the following error:
    Array of input arguments did not contain a required parameter at position 1
    I don't even think the document is being sent to the server.
    I've read that in FB3, the wizard didn't handle SOAP services right and would ignore headers - I'm just trying to establish if it works at all and if I should continue trying to sort this out.
    The request document should look something like this:
    <soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header>
          <wsse:Security
              xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
             <wsse:UsernameToken>
                <wsse:Username>12345</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">12345</wsse:Password>
             </wsse:UsernameToken>
          </wsse:Security>
          <rc:RequestContext
              xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:rc="http://www.mydomain.com/crme/request-context.xsd">
             <rc:Property rc:key="username">12345</rc:Property>
             <rc:Property rc:key="sourceapp">12345</rc:Property>
          </rc:RequestContext>
       </soapenv:Header>
       <soapenv:Body>
          <s0:getAssociatePortfolioByNBID
              xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
              xmlns:s0="http://www.mydomain.com/wsdl/gpbs/associatePortfolio/AssociatePortfolioService/v001"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema">
             <s0:nbid>NBD2ZXN</s0:nbid>
             <s0:attributeGroup>PARTYID</s0:attributeGroup>
          </s0:getAssociatePortfolioByNBID>
       </soapenv:Body>
    </soapenv:Envelope>
    Thanks!

    I was running into similar issues attempting to send a complex-typed request to a SOAP service.  Right up to the same error message, actually.  After a lot of googling and a little experimentation, I came up with an adjustment to the generated code that makes it work.
    (OBVersionDisclosure:  Flash Builder 4, Flex 4 SDK.)
    The generator produced an ActionScript class called [servicename], along with one named _Super_[servicename].  This service class gives you asynchronous RPC-style access to your SOAP methods.  For what we're doing, though, ignore the [servicename] class -- all the action is in the _Super_[servicename] class.
    Anyway, for each of these SOAP methods there is a same-named method on the Super class.  So if your SOAP method is named [mycall] and takes a data structure named [mycallstruct], it made an AS method that looks like this:
        public function [mycall]([mycallparam]:valueObjects.[mycallstruct]) : AsyncToken
            model_internal::loadWSDLIfNecessary();
            var _internal_operation:AbstractOperation = _serviceControl.getOperation("[mycall]");
            var _internal_token:AsyncToken = _internal_operation.send([mycallparam]) ;
            return _internal_token;
    Which should be fine, except that it's throwing that "did not contain a required parameter" fault.
    Long story short:  It looks like the send(args) form of the remote operation call is a little broken.  Because all I had to do to make this method work as advertised is this:
        public function [mycall]([mycallparam]:valueObjects.[mycallstruct]) : AsyncToken
            model_internal::loadWSDLIfNecessary();
            var _internal_operation:AbstractOperation = _serviceControl.getOperation("[mycall]");
            _internal_operation.arguments = [mycallparam];
            var _internal_token:AsyncToken = _internal_operation.send() ;
            return _internal_token;
    which is the call form I found in posted code for previous versions of Flex.
    Well, that's the extent of my knowledge on the subject.  Hope it's helpful.

  • How to generate java file from WSDL file

    Hi friends,
    I am new to this thing, so that's why I need some guidence .
    I need to generate java file programatically from existing wsdl file.
    I thought the ways - to use xmlbeans apache library or jaxb.
    Can you suggest what will be better way to generate java file from wsdl? can you please be more descriptive and can you direct me to appropriate link?
    Thanks.
    Harshit

    xmlbeans apache provides easiest way to create java file from wsdl there is very good link for that
    http://www.ibm.com/developerworks/webservices/library/ws-soa-clientxmlbeans.html
    If you want more programmatic approach then Jaxb will be a better option

Maybe you are looking for

  • Help please deploying Crystal Decisions 10 to Microsoft 2008 R2 IIS 7

    Folks, I need your help please. We've been using Crystal Decisions 10 with MS Server 2003. We're migrating to a VM envirionment with MS Server 2008 R2. I have everything working except for our crystal reports. We are a mostly an ASP Classic enviromen

  • Purging of deleted emails

    I am using Mail.app in a POP account. Apple's Support Article HT1668 says that occasionally the Trash folder will purge itself of deleted emails. This action is supposed to occur when the number of deleted emails exceeds the number set in the "Show .

  • Error : Address Doesn't exits - &&&

    In CRM 4.0 , while creating BP for our test purposes we are getting error message as "Address doent exits -&&&" When we create and save the BP it gives the above error.But it does appear in BP list when we look in using BP transaction. When try to op

  • How to load number of infosources to one infocube

    hi gurus can anybody give clear example how to add no of infosources to one infocube in the flat file & in r/3 i tried in flat file i am getting error when loading second infosource please try to provide with example ,i am verymuch confused about thi

  • Query for Item wise Sales.......

    *Hi Guys, Below is the query i have used to run Sales Register. But we need Item wise sales register and those Excise Duty calculations are needed for item wise instead of total document wise. Pls update the query ...* SELECT M.DocNum AS 'Inv.No ', M