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?

Similar Messages

  • WSDL-Compiler for HTTP-Binding

    I am searching for a wsdl-compiler, which is able to compile wsdl documents using http-binding but not soap-binding.
    Thanks a lot for your helping.

    Doesn't it generate classes for HTTP binding? I never tried to compile WSDL with HTTP binding. What happens when you do that?

  • RESTful service response using HTTP binding

    Hi all,
    I use a restful service and consume it using a HTTP binding adapter in my BPEL process. While sending response, the reponse is sent in xml format. But i want it just to be string. For example, i dont want the reponse to be like this "<Test>Firstname Lastname</Test>". I want it like "Firstname Lastname".
    In oracle docs its given, for HTTP binding reponse, its always XML. Has anyone achieved sending response without xml tags and their namespaces?
    Thanks,
    Terry

    Thank you for the reply
    I am able to contact the same endpoint from SoapUI and also the browser. As far as I know there is no proxy that is required but I will still go ahead and ask the provider.
    And do you have any clue why I am getting the error in Jdev when I compile the project?
    And another thing that I would like to mention is that the WSDL that the HTTP Binding adapter created is incomplete as in it does not have the <wsdl:service> tag, is that something that I should be looking out for?
    This is what my WSDL (generated by HTTP Binding Adapter) looks like
    <?xml version="1.0" encoding="UTF-16"?>
    <wsdl:definitions
    name="Get"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:msg_in_out="http://TargetNamespace.com/http"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    <plt:partnerLinkType name="Request_Response_plt">
    <plt:role name="Request-Response_role">
    <plt:portType name="tns:Request_Response_ptt"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://TargetNamespace.com/http" schemaLocation="xsd/Get.xsd"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="root_msg_in">
    <wsdl:part name="root" element="msg_in_out:root"/>
    </wsdl:message>
    <wsdl:message name="root_msg_out">
    <wsdl:part name="root" element="msg_in_out:root"/>
    </wsdl:message>
    <wsdl:portType name="Request_Response_ptt">
    <wsdl:operation name="Request-Response">
    <wsdl:input message="tns:root_msg_in"/>
    <wsdl:output message="tns:root_msg_out"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    Thanks
    Edited by: user1165407 on Aug 1, 2012 3:54 PM

  • Problem while using HTTP Binding in BPEL

    Hello
    I have a scenario where I am suppose to access a JSON based RESTful API from BPEL. I have created a HTTP binding adapter for the given endpoint.
    When I test the process I am getting the following error
    <part name="summary">
    <summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</summary>
    </part>
    <part name="detail">
    <detail>Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</detail>
    </part>
    And while I was compiling it in JDeveloper I am getting the following error
    Warning(24,52): Failed to Find Binding "Get":"{http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get}Request_Response_pt" in WSDL Manager
    Can anyone please help me with this?
    Thanks

    Thank you for the reply
    I am able to contact the same endpoint from SoapUI and also the browser. As far as I know there is no proxy that is required but I will still go ahead and ask the provider.
    And do you have any clue why I am getting the error in Jdev when I compile the project?
    And another thing that I would like to mention is that the WSDL that the HTTP Binding adapter created is incomplete as in it does not have the <wsdl:service> tag, is that something that I should be looking out for?
    This is what my WSDL (generated by HTTP Binding Adapter) looks like
    <?xml version="1.0" encoding="UTF-16"?>
    <wsdl:definitions
    name="Get"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:msg_in_out="http://TargetNamespace.com/http"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    <plt:partnerLinkType name="Request_Response_plt">
    <plt:role name="Request-Response_role">
    <plt:portType name="tns:Request_Response_ptt"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://TargetNamespace.com/http" schemaLocation="xsd/Get.xsd"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="root_msg_in">
    <wsdl:part name="root" element="msg_in_out:root"/>
    </wsdl:message>
    <wsdl:message name="root_msg_out">
    <wsdl:part name="root" element="msg_in_out:root"/>
    </wsdl:message>
    <wsdl:portType name="Request_Response_ptt">
    <wsdl:operation name="Request-Response">
    <wsdl:input message="tns:root_msg_in"/>
    <wsdl:output message="tns:root_msg_out"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    Thanks
    Edited by: user1165407 on Aug 1, 2012 3:54 PM

  • How to send attachments using HTTP Binding Adapter?

    How to send attachments using HTTP Binding Adapter in Jdeveloper?
    Requirement: I need to send attachments to a system which can communicate with the middleware using https only.
    Kindly suggest..
    Edited by: Richa Juneja on Jan 28, 2013 4:03 AM

    Hi,
    Following links may help U
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
    to know the basics about soap adapter u cn check out this link
    /people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
    to get in detail about the attachments chk out this link
    hi i am unable to attach an attachment in File to mail scenario
    Regards
    Pullarao

  • Jdev 11g: Webservice invocation using DII fails

    Hi,
    I am trying to invoke a webservice using DII mechanism.
    Here is the simple java code in a main() method..Just copy paste , build and run.
    package oracle.apps.atk.utils;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.ParameterMode;
    public class DynamicProxyClient {
        public DynamicProxyClient() {
        public static void main(String args[]) {
            try
                *  URL of the web service
                String wsdlURL = "http://www.webservicex.net/stockquote.asmx?WSDL";
                String address = "http://www.webservicex.net/stockquote.asmx";
                String namespaceURI = "http://www.webserviceX.NET";
                String serviceName = "StockQuote";
                String portName = "StockQuoteSoap";
                ServiceFactory factory = ServiceFactory.newInstance();
                * Create an instance of the Service with the given service QName
                Service service = factory.createService(new  QName(serviceName));
                Call call = service.createCall(new QName(portName));
                call.setTargetEndpointAddress(address);
                QName intQName = new QName("http://www.w3.org/2001/XMLSchema", "int");
                 * Set operation name to invoke.
                call.setOperationName(new QName(namespaceURI,"GetQuote"));
                 * Add parameters definitions in the call object.
                call.addParameter("GetQuote", intQName, ParameterMode.IN);
                 * Set definition of the return type.
                call.setReturnType(intQName);
                Object[] inParams = new Object[1];
                inParams[0] = new String("ORACLE");
                //String ipAddress= ((String)call.invoke(inParams));
                call.invoke(inParams);
                //System.out.println("ipAddress = "+ipAddress);
            catch (Exception e)
                e.printStackTrace();
    }The exception thrown is
    javax.xml.rpc.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
       at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
       at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
       at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:572)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:414)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:121)
         at oracle.j2ee.ws.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:99)
         at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:803)
         at oracle.apps.atk.utils.DynamicProxyClient.main(DynamicProxyClient.java:67)

    Hallo Shay,
    Thx for your answer. I have given this a try in JDev 11, but in the "Oracle PL/SQL Java EE Web Service Wizard" there are currently only this two options:
    - J2EE 1.4 with support for JSR181 JAX-RPC (deploy to OC4J 10.1.3 with Java annotations)
    - J2EE 1.4 with support for JSR181MR2 JAX-RPC (deploy to OC4J 11 with Java annotations)
    Only if I choose the WebService Assistent for some POJO it offers "Java EE 1.5, with support for JAX-WS Annotations".
    Is it planned in the final realease of JDev 11 to have JAX-WS also for PL/SQL WebServices?
    Thx a lot for helping

  • JDEV 10.1.3: Using "Create" binding on BC view object with ADF Faces Table

    Hello,
    I am trying to get this to work, but to no avail:
    I've got a very simple page (ADF Faces - JSPX) created by dragging an iterator from the data control pallete on to my page and picking "ADF Table..." as my chose to create. This creates a table on my page that allows me to edit each row in place. Very nice.
    Now, I dragged the create operation for that iterator on to the page. What I had hoped to see is that when I click "Create," a new blank row appears in my table (well, at least a row that is blank except for any default values specified in the EO/VO and my overriden create() method).
    However, this doesn't happen. The page submits and refreshes, but no blank row shows up. I initially tried setting the Create button to do partial submit and setting the partialtriggers for the table to include the Create button, to no avail. I also tried it without the partial submit with the same results.
    So:
    1). Should this work, or is this behavior a bug.?
    2). If not, is there a different/better way of doing it?
    Regards,
    John

    G'day John
    I think I can give you a hint of what is occuring... I'm still trying to work out what is happening exactly.
    In JDev 10.1.2 UIX, when the user invoked the create action, they would see the blank record added to the underlying table. Under 10.1.3 Faces the functionality is somewhat different.
    When you the user clicks on the create action a blank record is created but not shown in the table control. To prove the blank record is there try this:
    1) Build an ADF Input Form based on the same VO iterator
    2) In your JSF navigation, create a navigation case between the existing page and the new page, and another back again,
    3) In the existing page, map the Create button's action attribute to navigate to the ADF Input Form
    4) In the ADF Input Form, map the Submit button's action attribute to navigate to the ADF Table page.
    Now when you run your app, notice when you create a new record in the ADF Table which automatically takes you to the ADF Input Form, note the blank record, and the details you enter into the record here and submit, are then visible in the ADF Table on the return.
    This is a long way of proving that the new record is in the table. It's just you can't see it.
    I have a theory which I'm trawling through the newly updated documentation to verify. This issues goes back to the VO createRow vs insertRow method calls that have been documented by Steve Muench a couple of times. I'm guessing the table control is now smarter and doesn't show createRow records, only insertRow records.
    Read one of Steve's posts here regards the createRow vs insertRow method calls:
    http://www.oracle.com/technology/products/jdev/tips/muench/blankrow/index.html
    If I find anymore info I'll endeavour to post it.
    Meanwhile this of course doesn't help you if you actually want to show the blank row in the ADF Table editable control, but I'd thought I'd give you an idea of what's happening behind the scenes.
    Hope this helps.
    CM.

  • Https call using a http binding in soa

    Hi,
    I am trying to do an https call using soa suite 11g.I am using http binding for the same:
    Below is the url I am trying to call
    https://test.b2b2.rbs.gxs.com/invoke/URLTest/simpleReceive
    Below is the header which needs to be passed to the call
    <Headers>
    <Content-Type>application/HTTPstream</Content-Type>
    <actionrequest>upload</actionrequest>
    <userid>ADT00368</userid>
    <password>ADT00368</password>
    <receiverid>RBOSNL2A</receiverid>
    <datatype>XML</datatype> (optional)
    </Headers>
    I have 2 questions here
    1.I have installed the certificate from the secured site in the weblogic server.Still I am getting error "unable to access the below url"
    https://test.b2b2.rbs.gxs.com/invoke/URLTest/simpleReceive.
    2. second question is how to send the above mentioned header information in the https call?
    Regards,
    Naresh

    But while testing how will I pass the header?
    <Headers>
    <Content-Type>application/HTTPstream</Content-Type>
    <actionrequest>upload</actionrequest>
    <userid> ADT00368</userid>
    <password> ADT00368</password>
    <receiverid>ABNAMHTIN</receiverid>
    <datatype>XML</datatype>
    </Headers>

  • Error with HTTP binding - 11g

    Hi all ,
    I am getting below error while calling existing RESTful webservice from BPEL SOA composite, using HTTP Binding:
    *“null schema location for ns=null [Cause=null schema location for ns=null] at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575)”*
    WSDL file for HTTP service is
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="CASPaymentService"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/http/HelloWorldServlet/CSGetPaymentProvABCS/CASPaymentService"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/http/HelloWorldServlet/CSGetPaymentProvABCS/CASPaymentService"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <plt:partnerLinkType name="Request_Response_plt">
    <plt:role name="Request-Response_role">
    <plt:portType name="tns:Request_Response_ptt"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    *<schema xmlns="http://www.w3.org/2001/XMLSchema">*
    *<include schemaLocation="xsd/InputOutputFault.xsd"/>*
    *</schema>*
    </wsdl:types>
    *<wsdl:message name="envelope_msg_in">*
    *<wsdl:part name="input" element="envelope"/>*
    *</wsdl:message>*
    *<wsdl:message name="envelope_msg_out">*
    *<wsdl:part name="envelope" element="envelope"/>*
    *</wsdl:message>*
    <wsdl:portType name="Request_Response_ptt">
    <wsdl:operation name="Request-Response">
    <wsdl:input message="tns:envelope_msg_in"/>
    <wsdl:output message="tns:envelope_msg_out"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    Input schema  ( InputOutputFault.xsd) is like below: Please note it has no namespace
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="envelope">
    </xsd:element>
    </xsd:schema>
    binding in composite.xml is :
    <reference name="GetPaymentCAS" ui:wsdlLocation="GetPaymentCAS.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/http/HelloWorldServlet/GetPaymentCASServiceCall/GetPaymentCAS#wsdl.interface(Request_Response_ptt)"/>
    <binding.ws port="http://xmlns.oracle.com/pcbpel/adapter/http/HelloWorldServlet/GetPaymentCASServiceCall/GetPaymentCAS#wsdl.endpoint(GetPaymentCAS/Request_Response_pt)"
    location="GetPaymentCAS.wsdl" supports="http">
    <property name="http.verb" type="xs:string" many="false">POST</property>
    <property name="endpointURI" type="xs:string" many="false">http://testaia:9111/CAS/servlets/PaymentServicesServlet</property>
    <property name="http.payload" type="xs:string" many="false">xml</property>
    </binding.ws>
    </reference>
    It seems like HTTP binding in 11g works with XSD with some namespace only. And if we provide the schema details in either <wsdl:types> or via “including schema in wsdl” as shown above, at runtime it still try to look for schema file.
    Any workaround/solution for same is highly appreciated.
    Thanks & Regards
    Pintoo

    hi,
    I depolyd my ProvideABCS into EM here i ubable to invoke the serveses i get below error
    webservices invoikesfail:
    The selected operation ProcessEcoproduct could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : oracle.fabric.common.FabricInvocationException: java.lang.NullPointerException
    addtionalinfo:
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : oracle.fabric.common.FabricInvocationException: java.lang.NullPointerException at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:808) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:384) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:301) 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 com.sun.el.parser.AstValue.invoke(Unknown Source) at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : oracle.fabric.common.FabricInvocationException: java.lang.NullPointerException at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:362) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:1004) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:750) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:802) ... 79 more Caused by: oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : oracle.fabric.common.FabricInvocationException: java.lang.NullPointerException at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:1040) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:826) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:358) ... 82 more
    please help on it

  • How to Invoke service using HTTP POST in BPEL?

    I have a client using .net service with a web page http://.../httpreceive.aspx which is invoke through an http post. How can we post xml message using http post to the url in BPEL. Are there any documentation on doing this? Will this require writing a java class to do an http post the xml message to the url?
    Edited by: sns724 on Feb 12, 2009 11:56 AM

    I created a wsdl with the http-binding to do a HTTP Post and I'm getting a com.collaxa.cube.ws.wsif.providers.http.WSIFOperation_HTTP@1ac9964 : Could not invoke 'process'; nested exception is: java.lang.NullPointerException.
    Here's my wsdl with the binding:
    <definitions name="TestHTTPost" targetNamespace="http://test.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://test.com"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://hyphen.com"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="AddressBookEntry">
    <complexType>
    <sequence>
    <element name="AddressBookNumber" type="string"/>
    <element name="Name" type="string"/>
    <element name="AddressLine1" type="string"/>
    <element name="AddressLine2" type="string"/>
    <element name="City" type="string"/>
    <element name="State" type="string"/>
    <element name="PostalCode" type="string"/>
    <element name="Phone" type="string"/>
    <element name="Fax" type="string"/>
    <element name="Email" type="string"/>
    <element name="ElectDest" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="PostMessageResult">
    <complexType>
    <sequence>
    <element name="Result" type="string"/>
    <element name="Errors">
    <complexType>
    <sequence>
    <element name="Error">
    <complexType>
    <sequence>
    <element name="ErrorDescription" type="string"/>
    <element name="ErrorSource" type="string"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="HTTPPostServiceRequestMessage">
    <part name="payload" element="tns:AddressBookEntry"/>
    </message>
    <message name="HTTPPostServiceResponseMessage">
    <part name="payload" element="tns:PostMessageResult"/>
    </message>
    <portType name="HTTPPostService">
    <operation name="process">
    <input message="tns:HTTPPostServiceRequestMessage" />
    <output message="tns:HTTPPostServiceResponseMessage"/>
    </operation>
    </portType>
    <binding name="HTTPPost" type="tns:HTTPPostService">
    <http:binding verb="POST"/>
    <operation name="process">
    <http:operation location="/httpreceive.aspx"/>
    <input>
    <mime:mimeXml part="payload"/>
    <mime:content type="text/xml"/>
    </input>
    <output>
    <mime:mimeXml part="payload"/>
    <mime:content type="text/xml"/>
    </output>
    </operation>
    </binding>
    <service name="HTTPPostService">
    <port name="HTTPPost" binding="tns:HTTPPost">
    <http:address location="https://testxml.solutions.com"/>
    </port>
    </service>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARTNER LINK TYPE DEFINITION
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <plnk:partnerLinkType name="HTTPPostService">
    <plnk:role name="HTTPPostServiceProvider">
    <plnk:portType name="tns:HTTPPostService"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

  • SOAP HTTP Binding

    Hi,
    While trying troubleshoot a problem with a web service created in Workshop, I noticed that HTTP request generated for SOAP messages is bound to HTTP/1.0. Is this expected? How can I change this to HTTP/1.1? Does the standard for soap binding to HTTP restrict to one or the other?
    Any help will be appreciated.
    thanks,
    Rajiv.

    No, this is just a .net asp site (httpreceive.aspx) that take http post. I have to use http binding to do an http post since there is no web service. Therefore there is no wsdl to import for the partner link. However, they expect the xml to be in a soap envelope with a custom soap header for authentication. I'm able to get the soap envelope using soap binding but not http binding. What I need is to be able to do a http post with the message in a soap envelope. Any help will be greatly appreciated.

  • HTTP Binding & SOAP Binding

    I have a client where I need to post xml message to an aspx site. The XML need to be in a SOAP envelope. When using http binding to do a http post the message is not in a soap envelope. Is there a simple way of using http binding that will post the message in a soap envelope? I used obtunnel to capture the message of a http binding vs a soap binding.
    HTTP Binding:
    POST /httpreceive.aspx/httpreceive.aspx HTTP/1.1
    Host: devsoa.test.com:1234
    Connection: Keep-Alive, TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: text/xml
    Content-length: 336
    <?xml version="1.0" encoding="UTF-8"?>
    <AddressBookEntry xmlns="http://xmlns.oracle.com/TestService">
    <AddressBookNumber>43</AddressBookNumber>
    <Name>test user</Name>
    <AddressLine1/>
    <AddressLine2/>
    <City/>
    <State/>
    <PostalCode/>
    <Phone/>
    <Fax/>
    <Email/>
    <ElectDest/>
    </AddressBookEntry>
    SOAP Binding:
    POST /httpreceive.aspx HTTP/1.1
    Host: devsoa.test.com:1234
    Connection: Keep-Alive, TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    SOAPAction: "process"
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: text/xml; charset=UTF-8
    Content-length: 734
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Header>
    <MsgSoapHeader xmlns="http://xmlns.oracle.com/TestService">
         <Authentication>
              <UserName>testUser</UserName>
              <Password>testPwd</Password>
         </Authentication>
         <Properties>
              <Company>TEST</Company>
         </Properties>
    </MsgSoapHeader>
    </env:Header>
    <env:Body>
         <AddressBookEntry xmlns="http://xmlns.oracle.com/TestService">
              <AddressBookNumber>12345</AddressBookNumber>
              <Name>test user</Name>
              <AddressLine1/>
              <AddressLine2/>
              <City/>
              <State/>
              <PostalCode/>
              <Phone/>
              <Fax/>
              <Email/>
              <ElectDest/>
         </AddressBookEntry>
    </env:Body>
    </env:Envelope>
    Edited by: sns724 on Mar 16, 2009 1:32 PM
    Edited by: sns724 on Mar 16, 2009 4:07 PM
    Edited by: sns724 on Mar 16, 2009 4:07 PM

    No, this is just a .net asp site (httpreceive.aspx) that take http post. I have to use http binding to do an http post since there is no web service. Therefore there is no wsdl to import for the partner link. However, they expect the xml to be in a soap envelope with a custom soap header for authentication. I'm able to get the soap envelope using soap binding but not http binding. What I need is to be able to do a http post with the message in a soap envelope. Any help will be greatly appreciated.

  • 11.1.1.4 - HTTP Binding Adapter

    In soa suite 11.1.1.4, I was able to test a sample program using http binding adapter in calling a restful web serivce that has complex types as input and output.
    The oracle document says it does not support complex types (reference. Oracle note/document ID 1328955.1 ). What exactly does that document mean ?

    Hi Robert,
    I was trying out the same thing using HTTP adapter in 11.1.15, but i am getting error when i used the complex types with GET method.
    Are you able to use XML complex types with GET method. I tried both the ways to create the complex type and also tried with multiple parts in the WSDL created by HTTP binding. But in all cases i am getting REPLACE_WITH_ACTUAL_URL error. Same thing is working with the POST method.
    Thanks
    Siva

  • Post XML HTTP Binding

    I have understood that , I need to use HTTP Binding to sent XML documents to External system using POST.
    But where can I give the URL specifications during creation of HTTP Binding ?
    It doesn't ask me for URL during HTTP Wizard .
    Please let me know
    Sur

    Hello Both,
    Thank you.
    I ran following command from SQL Plus window after connecting to DB..
    SQL> @[%NLS_LANG%]
    SP2-0310: unable to open file "[AMERICAN_AMERICA.WE8MSWIN1252]"And also I have checked actual data using DUMP function, it looks like data stored is wrong.
    I have updated one field in SAP such that it only contains German character ä. When I query corresponding data from Oracle I got following output..
    SELECT xmlresponse.Notes,
      dump(xmlresponse.Notes,1010) dump_text
    FROM webservice_log,
      Xmltable(Xmlnamespaces
                                  ('http://www.w3.org/2003/05/soap-envelope' AS "env",
                                   'http://sap.com/xi/CRM/Global2' AS "nm",
                                   'urn:sap.com:proxy:DCT:/1SAI/TAS57DF0B317943DEAE3C49:702' AS "prx"
                                   '/env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner'
                                   PASSING xml_response
                                   columns
                                   NOTES VARCHAR2(4000) PATH 'TextCollection/Text/TextContent/Text'
                             ) XMLRESPONSE;
    /* Output */
    NOTES -- DUMP_TEXT
    ä     Typ=1 Len=4 CharacterSet=AL32UTF8: 195,131,194,164But decimal notation for German character ä is different!
    SELECT DUMP('ä',1010) dump_text from dual;
    /*Output*/
    DUMP_TEXT
    Typ=96 Len=2 CharacterSet=AL32UTF8: 195,164Regards,
    Hari

  • Http Binding Problem

    Hi,
    Does anyone know hot use http binding sample?
    I don't understand how to call Http application from BPEL.
    There's no document in tutorial.
    Thanks in advance.
    JJ.

    Hi
    Lucas from Amis made a nice blog on this a while back :
    http://technology.amis.nl/blog/?p=1273
    Pretty clear info

Maybe you are looking for

  • Not able to set the value in marketing context node for BP_HEAD

    Hi, I am trying to set the value in marketing node of BP_HEAD from bp_addr component. i am calling the set_property method but it is not changing the value, when i debugg the code, it actually changing the value in bol structure but it is not calling

  • Error in Process Chain while extracting data from source system

    Hi All, Dail we are facing problem while retrieving the data from source system for the data source 0TB_AMOUNT1 in the process chain, it is giving error "Function module BANK_TMC_API_SIM_GET does not exist Furnction module". when I repeat the step th

  • T60 KERNEL_DATA_INPAGE_ERROR

    Hello, I've got an 8'ish year old T60 with all original components except the fan. I've been getting a KERNEL_DATA_INPAGE_ERROR for about two years now. I understand it's typically due to a failure of the HDD or the hard drive connecting cables. In m

  • Resetting Display

    I plugged my MacBook into a projector using the DVI to VGA adapter and it made my display on my computer huge. I went back to system preferences and changed it to a smaller siz but all my windows and toolbars stayed the same. How do I reset to the fa

  • Change book size mid-design

    I'm creating a book to print with blurb. I started on this project last year and I'm just getting around to finish it now, but I've designed the whole book to the wrong size. Is there any way to change the size of the book now? Or can you drag everyt