Problem getting RESTful web service reference working with header value

Hi,
I posted this on Apex Listener forum but since I am not sure problem is with my Application RESTful web service reference or a Listener issue, I am posting here as well:
I am on Apex 4.2.2 and Listener 2.1 and the listener is on WEblogic.
I succeeded to get a RESTful web service working in an application with no header to obtain a full set of data. The data set is very large, so I am now just trying to set up a web service to get a set of data based on a student ID.
I followed the examples shown in the RESTful web service module of SQL Workshop and set up a handler of this type:
https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
The test for this handler succeeded both for JSON output and CSV output in the Workshop test environment.
However, when I try it from a Web Service Reference that I created for my application following what looked like the same approach used on the example video, I get NO data back. If I put a 'stid' directly into a URL of a web browser and do the basic authentication I get the data!!
This is what I have for the Web service reference:
https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
Basic auth set to Yes -- and this is working -- I am able to authenticate
HTTP method Get
output format Text
no response Xpath
no response namespace
defaults for new record and parameter delimiter
NO REST input parameters
Output set for all the fields in the data set queried (same set of data as in my rest service which does not have any http header)
REST HTTP Header : Name stid
I there something I am missing. I am not sure how to troubleshoot this further.
I also tried exactly following the example shown on the Oracle Video for RESTFul web services at
http://www.youtube.com/watch?v=gkCvd6P8_OU
and I can't get the 2nd example to work either-- where the header has the bind variable parameter.
Pat

I was able to resolve the problem -- in the latest version of the RESTful web service that I created, I had left out the creation of the Header Parameter bind variable. Once I did that everything works fine!! I was able to test in the application and got the record of an individual student.
Thanks,
PM

Similar Messages

  • REST Web Service References: Can't run Google APIS

    Hello Everyone!
    I am learning on how to integrate REST web service reference in APEX application. I found a tutorial video at YouTube on 'Creating and Using a RESTful Web Service in Application Express 4.2', which found to be very helpful and easy to do on my sample app. The REST Web Service URL:
    http://maps.googleapis.com/maps/api/geocode/xml?address=san%20fancisco&sensor=false
    But my application throws an error as below:
    1 error has occurred
    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL)
    After going through some of the posts here at OTN, I have granted access as follows:
    GRANT EXECUTE ON SYS.UTL_HTTP TO ETI;
    GRANT EXECUTE ON SYS.UTL_INADDR TO ETI;
    GRANT EXECUTE ON SYS.UTL_TCP TO ETI;
    GRANT EXECUTE ON SYS.UTL_SMTP TO ETI;
    GRANT EXECUTE ON SYS.UTL_URL to ETI;
    GRANT EXECUTE ON SYS.UTL_XML to ETI;
    Second thing I did was, created and assigned ACL:
    begin
      dbms_network_acl_admin.create_acl (
        acl         => 'googleapis.xml',
        description => 'Google Translate API',
        principal   => 'CONNECT',
        is_grant    => true,
        privilege   => 'connect',
        start_date  => null,
        end_date    => null
      dbms_network_acl_admin.add_privilege (
        acl       => 'googleapis.xml',
        principal => 'CONNECT',
        is_grant  => true,
        privilege => 'connect'
      dbms_network_acl_admin.assign_acl (
        acl  => 'googleapis.xml',
        host => 'ajax.googleapis.com'
      dbms_network_acl_admin.assign_acl (
        acl  => 'googleapis.xml',
        host => 'maps.googleapis.com'
    end;
    All these statements were executed on my database with out any error, even though not helping my web service reference to work.
    Any idea how can I get my Google API REST Web service working, what is the thing I'm missing here?

    I apologize for the lack of information.
    I thought I had included a list of schemas for you to try out.
    At first, (due to the GRANT ___ TO ETI;) I thought you were writing your own Web Service parser in PL/SQL.
    (If that was the case, than ETI would need be part with the ACL)
    Then, I realized,you were using the built in APEX functionality.
    In this case, try adding your APEX_{version} schema as part of the ACL.
    I'm not sure if this will work (I haven't tried it).
    However, I do know you need to add the APEX_{version} to the ACL if you use the LDAP Authentication.
    finding APEX_{version}
    select comp_id, version, status, schema
    from dba_registry
    where comp_id='APEX'
    MK

  • How can we get the web cam to work with sykpe or any out going calls

    can get the web cam to work with skype

    Hey there,
    What model laptop is this? Are you using the built-in webcam or is this a external web cam? Also what operating system are you using?
    Thanks!
    Sean
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Re: Error while using Web services for working with Informatica workflow

    Hi All,
    I am getting below error when i am calling Informatica wokrflow using Web Services HUB.
    able to establish connection with the informatica server.
    please can any one help out me in this.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    {http://xml.apache.org/axis/}hostname:win2k3sami
    java.lang.NullPointerException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:104)
    at org.apache.axis.client.Call.invoke(Call.java:2504)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    Caused by: java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    ... 6 more
    Thanks in advance.
    Mahesh.

    Hi All,
    I am getting below error when i am calling Informatica wokrflow using Web Services HUB.
    able to establish connection with the informatica server.
    please can any one help out me in this.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    {http://xml.apache.org/axis/}hostname:win2k3sami
    java.lang.NullPointerException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:104)
    at org.apache.axis.client.Call.invoke(Call.java:2504)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    Caused by: java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    ... 6 more
    Thanks in advance.
    Mahesh.

  • Error while using Web services for working with Informatica

    [Status] : Initializing...
    [Status] : Done
    [Status] : Calling StartWorkflow...
    From : DataIntegrationServiceSoapBindingStub
    Reason getting : null
    Jun 25, 2007 6:15:06 AM org.apache.axis.encoding.ser.BeanSerializer serialize
    SEVERE: Exception:
    java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:215)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:519)
         at org.apache.axis.Message.getContentType(Message.java:475)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Jun 25, 2007 6:15:06 AM org.apache.axis.attachments.AttachmentsImpl getAttachmentCount
    WARNING: Exception:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:519)
         at org.apache.axis.Message.getContentType(Message.java:475)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
         {http://xml.apache.org/axis/}hostname:daa30144app003b
    java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:519)
         at org.apache.axis.Message.getContentType(Message.java:475)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Caused by: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         ... 17 more
    Reason getting : null
    Jun 25, 2007 6:15:06 AM org.apache.axis.encoding.ser.BeanSerializer serialize
    SEVERE: Exception:
    java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:215)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
         at org.apache.axis.Message.getContentLength(Message.java:499)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Exception Occurred: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
         at org.apache.axis.Message.getContentLength(Message.java:499)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
         {http://xml.apache.org/axis/}hostname:daa30144app003b
    java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
         at org.apache.axis.Message.getContentLength(Message.java:499)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Caused by: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         ... 17 more

    Hi All,
    Now again i am getting below error when i am calling wokrflow to run using Web Services HUB.
    please can any one help out me in this.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
         at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
         at org.apache.axis.client.Call.invoke(Call.java:2789)
         at org.apache.axis.client.Call.invoke(Call.java:2501)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:1835)
         at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
         at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
         at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
         at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
         {http://xml.apache.org/axis/}hostname:win2k3sami
    java.lang.NullPointerException
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:104)
         at org.apache.axis.client.Call.invoke(Call.java:2504)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:1835)
         at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
         at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
         at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
         at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    Caused by: java.lang.NullPointerException
         at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
         at org.apache.axis.client.Call.invoke(Call.java:2789)
         at org.apache.axis.client.Call.invoke(Call.java:2501)
         ... 6 more
    Thanks in advance.
    Mahesh.

  • Problem getting subsonic web interface to work

    I posted this in the subsonic forums and have not received any reply.
    I had Subsonic running nicely on Debian, but I have now switched my server OS to Arch. I installed the package in the AUR (https://aur.archlinux.org/packages.php?ID=35954), which is based on the standalone version of subsonic, but I have not been able to connect to the web interface once the server is started.
    The variables in subsonic.sh look like this:
    SUBSONIC_HOME=/var/subsonic
    SUBSONIC_HOST=127.0.0.1
    SUBSONIC_PORT=4040
    SUBSONIC_HTTPS_PORT=4041
    SUBSONIC_CONTEXT_PATH=/
    SUBSONIC_MAX_MEMORY=100
    SUBSONIC_PIDFILE=/var/subsonic/subsonic.pid
    SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/subsonic/music
    SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/subsonic/podcasts
    SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/subsonic/playlists
    I have what I believe are suitable permissions on all of the needed folders:
    drwxr-xr-x 2 root root 4096 Jul 16 11:49 db
    -rw-r--r-- 1 root root 3003 Jul 15 19:49 Getting Started.html
    drwxr-xr-x 3 root root 4096 Jul 15 20:43 jetty
    -rw-r--r-- 1 root root 35819 Jul 15 19:49 LICENSE.TXT
    drwxr-xr-x 2 root root 4096 Jul 15 21:19 music
    drwxr-xr-x 2 root root 4096 Jul 16 11:38 playlists
    drwxr-xr-x 2 root root 4096 Jul 16 11:38 podcasts
    -rw-r--r-- 1 root root 540 Jul 15 19:49 README.TXT
    -rw-r--r-- 1 root root 846961 Jul 15 20:45 subsonic13.index
    -rw-r--r-- 1 root root 10805794 Jul 15 19:49 subsonic-booter-jar-with-dependencies.jar
    -rw-r--r-- 1 root root 688 Jul 16 11:54 subsonic.log
    -rw-r--r-- 1 root root 5 Jul 16 11:48 subsonic.pid
    -rw-r--r-- 1 root root 98 Jul 16 11:49 subsonic.properties
    -rwxr-xr-x 1 root root 5067 Jul 16 11:40 subsonic.sh
    -rw-r--r-- 1 root root 9403 Jul 16 11:49 subsonic_sh.log
    -rw-r--r-- 1 root root 18871786 Jul 15 19:49 subsonic.war
    drwxr-xr-x 2 root root 4096 Jul 15 20:44 transcode
    When I run the subsonic.sh script, I get this:
    Started Subsonic [PID 3231, /var/subsonic/subsonic_sh.log]
    'ps aux' confirms it is running:
    root 3231 22.4 2.6 237256 54236 pts/4 Sl 11:48 0:15 java -Xmx100m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=127.0.0.1 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=4041 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/subsonic/music -Dsubsonic.defaultPodcastFolder=/var/subsonic/podcasts -Dsubsonic.defaultPlaylistFolder=/var/subsonic/playlists -Djava.awt.headless=true -jar subsonic-booter-jar-with-dependencies.jar
    But 'lsof -i' shows no ports are actually open for subsonic and when I try to go to the server on port 4040 in a browser, it won't load the page. I can't access the web interface either on the server itself or on my laptop. I have also tried the secure port with no joy.
    I have added 'java: ALL' and 'subsonic: ALL' lines to hosts.allow. Not sure whether or not this is necessary.
    /var/subsonic_sh.log: http://pastie.org/2237984
    /var/subsonic.log:
    [2011-07-17 17:12:17,504] INFO DaoHelper - Checking database schema.
    [2011-07-17 17:12:19,213] INFO DaoHelper - Done checking database schema.
    [2011-07-17 17:12:20,222] INFO SearchService - Automatic index creation scheduled to run every 1 day(s), starting at Mon Jul 18 03:00:00 PDT 2011
    [2011-07-17 17:12:20,712] INFO PodcastService - Automatic Podcast update scheduled to run every 24 hour(s), starting at Sun Jul 17 17:17:20 PDT 2011
    [2011-07-17 17:12:24,164] INFO NetworkService - Deleted port mapping for port 80
    [2011-07-17 17:17:20,706] INFO PodcastService - Starting scheduled Podcast refresh.
    [2011-07-17 17:17:20,709] INFO PodcastService - Completed scheduled Podcast refresh.
    I don't see anything that looks like an error message in this.

    What would help people to be able to suggestion useful solutions? Am I missing information?

  • Error in REST Web Service with Output Format as Text

    Hi All,
    I am referencing a REST web service, and can successfully connect to it and retrieve results with the Output Format set to XML.
    I don't need the individual node values, I just want to capture the entire XML as a string, and populate a table column with it.
    When I create a new Rest web service reference, with Output Format set to Text, and then create a form/report to run it, I get the following error when I click 'Submit':
    ORA-06550: line 1, column 63: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( - + case mod new not null others avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
         Error      Error sending request.
    There are control characters in the XML, but surely this is handled by Apex, so I'm not sure what the problem is here.
    Any ideas most welcome.
    Thanks,
    Rhodri

    Rhodri:
    Application Express expects text response to actually be text response, delimited by other characters denoting a new value, and a new record set. You should leave the response as XML. The XML document will be stored in the xmltype01 column of the collection you specify. You can then convert that xmltype01 column to a clob if you like using .toClobVal().
    Regards,
    Jason

  • Can't get web cam to work with Yahoo messenger

    I can't get my web cam to work with my Yahoo messenger but it opens up with the Cam assistant thats all it will do.
    Can someone help me with this problem and get it working with Yahoo messenger?

    Hello
    Before you start MSN disable Camera Assistant Software. When MSN starts try please to check cam functionality under Audio and Video Setup. On step 3 you will have Webcam Setup.
    Please select there Chicony USB 2.0 Camera.
    The camera should start and in test window you should have picture.
    Can you use it now?

  • Web Services Not Working because wwv_flow_collections view is empty

    Hello,
    I followed this example to try and get a web service running in my Application:
    http://apex.oracle.com/i/doc/advnc_rest_web_eg_2.htm
    When I run the page and enter the zip code 43221 they recommend with a radius of 5, I get no results. When debugging and throwing the query into SQL Dev, I have no records in my wwv_flow_collections view. Looking at the tables that comprise the view, wwv_flow_collections$ and wwv_flow_collection_members$, these two tables would join on c.id = m.collection_id alone, but there are additional in-line selects involving the DUAL table that make the query return 0 records and therefore the view is empty. I've never messed with these views/tables, are these auto-populated by APEX? Can they be updated? Right now I cannot get any web services to work because of this. Here is the from clause for the wwv_flow_collections view:
    FROM
    wwv_flow_collections$ c,
    wwv_flow_collection_members$ m
    WHERE
    c.session_id =
    SELECT
    v('SESSION')
    FROM
    dual
    AND c.security_group_id =
    SELECT
    wwv_flow.get_sgid
    FROM
    dual
    AND c.id = m.collection_id
    AND c.flow_id =
    SELECT
    nv('FLOW_ID')
    FROM
    dual
    Can anyone help? Thanks in advance!
    John

    John,
    I have been working this week to set up the exact same thing and got the same empty result set that you have. In this case I believe it has nothing to do with APEX. I downloaded soapUI 4.0.1 which tests web services and used the WSDL described in the APEX Webservices tutorial for http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/moviefunctions.asmx?wsdl to create the same sample requests. It also returns no results.
    So, I decided to use a different public WSDL and try to get it working. Here are my steps taken below:
    BACKGROUND:
    - I am using APEX 4.0 on an 11gR2 database, with ACLS set up for the APEX schema this app is using.
    - First off, the site I used I just found through google. It is a currency conversion rate webservice. It is explained here: http://www.webservicex.net/CurrencyConvertor.asmx
    - The WSDL is found here: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
    SETTING UP THE WEBSERVICE:
    1. In a new APEX application I went to "*Shared Components*" -> "*Web Service References*" -> "*Create*" to create a new web service reference
    2. Selected manual
    3. Called the webservice CURRENCY_TEST
    4. Set the URL to http://www.webservicex.net/CurrencyConvertor.asmx
    5. Set the Action to http://www.webserviceX.NET/ConversionRate (Action can be found in the WSDL - showing a few lines below)
    <pre class="jive-pre">
    <wsdl:binding name="CurrencyConvertorSoap" type="tns:CurrencyConvertorSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="ConversionRate">
    <soap:operation soapAction="*http://www.webserviceX.NET/ConversionRate*" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    </pre>
    6. WSDL explains that the version is *1.1* in this case. (However, this same WSDL has the same operation for 1.2 so it probably would work)
    7. No Authentication
    8. soapUI 4.0.1 gave me the soap request which in this case is the following:
    <pre class="jive-pre">
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/">
    <soapenv:Header/>
    <soapenv:Body>
    <web:ConversionRate>
    <web:FromCurrency>#FROM_CURRENCY#</web:FromCurrency>
    <web:ToCurrency>#TO_CURRENCY#</web:ToCurrency>
    </web:ConversionRate>
    </soapenv:Body>
    </soapenv:Envelope>
    </pre>
    9. Stored response in collection CURRENCY_COLLECTION
    10. Saved my web service reference
    11. Test the web service reference (you have to be on the web service references page and instead of the icon view of the report, use the list view. Click on the test icon to test the web service)
    12. On the test page, change #FROM_CURRENCY# to USD (for US dollars) and #TO_CURRENCY# to EUR (Euros)
    13. Click the test button and you should see a valid soap response with a currency rate within the ConversionRateResult tags
    USING THE WEBSERVICE AND GETTING RESULTS:
    1. Went back to the application and hit "*Create Page*" -> "*Form*" -> "*Form and Report on Web Service*"
    2. Selected my CURRENCY_TEST web service reference
    3. Next on the next page
    4. For input parameters, left the defaults to create 2 inputs, From_Currency and To_Currency
    5. Soap Style for this is Document (found in the WSDL as an attribute just after the soapAction attribute in the WSDL snippet above)
    6. Message Format is Literal (Also found above in the wsdl:output for this operation under the use attribute)
    7. XPATH is a bit complicated. In this case put */ConversionRateResponse* (I used the soapUI 4.0.1 to send the request and get back the soap response to see what the response tags would include and which path I'm going to)
    8. Message Namespace is http://www.webserviceX.NET/ (which is also found in the response soap message - I'd really recommend a tool to test this outside of APEX)
    9. For Parameter Names there is only one and it is ConversionRateResult (also found in the response soap message)
    10. Finish and run the report.
    OTHER GOTCHAS:
    So I finally got this to work, but in my case I was querying a remedy webservice and the xml tags I get back are all xmlns:ns0 and all response tags prefaced with ns0:
    In this case I had to after using the wizard go back and edit my query to change xmlns to xmlns:ns0 since the builder only assumes xmlns.
    <pre class="jive-pre">
    select extractValue(value(t),'/*/ns0:Assigned_Group','xmlns:ns0="urn:HPD_IncidentInterface_WS"') "Assigned_Group"
    , extractValue(value(t),'/*/ns0:Assignee','xmlns:ns0="urn:HPD_IncidentInterface_WS"') "Assignee"
    , extractValue(value(t),'/*/ns0:Resolution','xmlns:ns0="urn:HPD_IncidentInterface_WS"') "Resolution"
    , extractValue(value(t),'/*/ns0:Status','xmlns:ns0="urn:HPD_IncidentInterface_WS"') "Status"
    from wwv_flow_collections c,
    table(xmlsequence(extract(c.xmltype001,'//ns0:HelpDesk_Query_ServiceResponse','xmlns:ns0="urn:HPD_IncidentInterface_WS"'))) t
    where c.collection_name = 'INCIDENT_TEST'
    </pre>
    Good Luck!
    Jonathon

  • Consuming RESTful web service in Apex app

    Hi,
    I have created a RESTful Web service through an Apex application (4.0) and published as a public web service. Can someone point me to an example of how to then consume that service in another Apex app? The output is straightforward XML that I can retrieve just by pointing the browser to the URL of the service created, but when I go to create the REST Web Reference for the receiving application, I am not sure what to put for the Response Xpath or Response Namespace. The service is meant to just return report records that were created in the REStful Web service with no input required.
    The service XML looks like this:
    <ROWSET>
    <ROW>
    <PROJ_ID>132</PROJ_ID>
    <PSL_NETID>xxxxxxxx</PSL_NETID>
    <PROJECT_TITLE>11g- Oracle Upgrade to RAC 11g</PROJECT_TITLE>
    <CUSTOMER>OIT</CUSTOMER>
    <DIVISION>EIS</DIVISION>
    </ROW>
    <ROW>
    <PROJ_ID>132</PROJ_ID>
    <PSL_NETID>xxxxxx</PSL_NETID>
    <PROJECT_TITLE>11g- Oracle Upgrade to RAC 11g</PROJECT_TITLE>
    <CUSTOMER>OIT</CUSTOMER>
    <DIVISION>CSS</DIVISION>
    Any help would be appreciated.
    Thanks,
    Pat
    Edited by: patfmnd on Dec 7, 2012 3:04 AM

    Hi,
    I have made progress in this. I created the RESTful report service in an Apex 4.1 application. (previous attempt was with 4.0 version of Apex)
    I then created a separate application and created a RESTful web service reference that I tested and it was successful in bringing up XML. However in Apex 4.1, when I create a report following the Wizard for creating a report based on that Web service reference I get the error: ORA-31013: Invalid XPATH expression Which I don't know how to get past. The Xpath provided in the Web service reference test gave output below and brought back a result. There was no where during the Report creation to provide an Xpath. Am I missing something or is 4.1 not quite Web service ready??
    This is what I get from the test of the Web service reference in the Apex App from which I want to create a report: (I see in this XML the data I was expecting from the test of the RESTful web service but it looks like the output I get from the Web service test is more like the Report xml itself.)
    <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com" xmlns:apex="http://apex.oracle.com"> <head> <title>Author</title>
    <!--[if IE]><link rel="stylesheet" href="/i/css/apex_ie_4_1.css" type="text/css" /><![endif]--> <script type="text/javascript">
    //<![CDATA[
    var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
    //]]>
    </script>
    <script src="/i/javascript/apex_4_1.min.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    //<![CDATA[
    apex.security.framebreaker("D");
    //]]>
    </script>
    <!--[if IE]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie.css" type="text/css" /><![endif]--><!--[if IE 6]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie6.css" type="text/css" /><![endif]--><!--[if IE 7]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie7.css" type="text/css" /><![endif]--><!--[if lte IE 6]><div id="outdated-browser">You are using an outdated web browser. For a list of supported browsers, please reference the Oracle Application Express Installation Guide.</div><![endif]-->
    <form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm"><input type="hidden" name="p_flow_id" value="140" id="pFlowId" /><input type="hidden" name="p_flow_step_id" value="1" id="pFlowStepId" /><input type="hidden" name="p_instance" value="6146802068150520" id="pInstance" /><input type="hidden" name="p_page_submission_id" value="1940235134399423" id="pPageSubmissionId" /><input type="hidden" name="p_request" value="" id="pRequest" />
    <div id="header">
    <div id="app-logo"><a href="f?p=140:1:0"></a></div>
    <div id="navbar">
    <div class="navbar-entry">Logout</div>
    </div>
    </div>
    <div id="tabs">
    <div class="frame">
    <div class="bg">
    <div class="tab-holder">
    <div class="first-current">
    <div><span>Author</span></div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div id="topbar">
    <div class="breadcrumb-region" id="R170908223330421512">
    <div>
    <div id="breadcrumbs">
    <ul class="breadcrumb-list">
    <li class="current">Author</li>
    </ul>
    </div>
    </div>
    </div>
    </div>
    <div id="messages"></div>
    <div id="body">
    <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
    <tbody>
    <tr>
    <td class="tbl-main" width="100%">
    <div class="rounded-corner-region" id="books">
    <div class="rc-blue-top">
    <div class="rc-blue-top-r">
    <div class="rc-title">AUTHOR</div>
    <div class="rc-buttons"><button value="Reset" class="button-gray" type="button" id="B170907622885421490"><span>Reset</span></button></div>
    </div>
    </div>
    <div class="rc-body">
    <div class="rc-body-r">
    <div class="rc-content-main">
    <table id="apex_layout_170907030238421484" border="0" class="formlayout" summary="" role="presentation" datatable="0">
    <tr>
    <td align="right"><label for="P1_REPORT_SEARCH" tabindex="999"><a class="optional-w-help" href="javascript:popupFieldHelp('170907422375421487','6146802068150520')" tabindex="999">Search</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="170907422375421487" /><input type="text" id="P1_REPORT_SEARCH" name="p_t01" value="" size="30" maxlength="2000" class="text_field" /></td>
    <td align="right"><label for="P1_ROWS" tabindex="999"><a class="optional-w-help" href="javascript:popupFieldHelp('170907508375421490','6146802068150520')" tabindex="999">Display</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="170907508375421490" /><select name="p_t02" id="P1_ROWS" size="1" class="selectlist">
    <option value="10">10</option>
    <option value="15" selected="selected">15</option>
    <option value="20">20</option>
    <option value="30">30</option>
    <option value="50">50</option>
    <option value="100">100</option>
    <option value="200">200</option>
    <option value="500">500</option>
    <option value="1000">1000</option>
    <option value="5000">5000</option>
    </select></td>
    <td align="left"></td>
    <td colspan="1" rowspan="1" align="left"><button value="Go" class="button-gray" type="button" id="P1_GO"><span>Go</span></button></td>
    </tr>
    </table>
    <div id="report_170907030238421484_catch">
    <table cellpadding="0" border="0" cellspacing="0" summary="" id="report_books">
    <tr>
    <td></td>
    </tr>
    <tr>
    <td>
    <table cellpadding="0" border="0" cellspacing="0" summary="" class="report-standard">
    <tr>
    <th id="AUTHORID" class="header">
    <div class="rpt-sort">Authorid<img align="absmiddle" src="/i/arrow_up_gray_dark.gif" width="13" height="12" alt="Sort by this column" /></div>
    </th>
    <th id="LNAME" class="header">
    <div class="rpt-sort">Lname</div>
    </th>
    <th id="FNAME" class="header">
    <div class="rpt-sort">Fname</div>
    </th>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">A100</td>
    <td headers="LNAME" class="data">AUSTIN</td>
    <td headers="FNAME" class="data">JAMES</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">A105</td>
    <td headers="LNAME" class="data">ADAMS</td>
    <td headers="FNAME" class="data">JUAN</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">B100</td>
    <td headers="LNAME" class="data">BAKER</td>
    <td headers="FNAME" class="data">JACK</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">F100</td>
    <td headers="LNAME" class="data">FIELDS</td>
    <td headers="FNAME" class="data">OSCAR</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">J100</td>
    <td headers="LNAME" class="data">JONES</td>
    <td headers="FNAME" class="data">JANICE</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">K100</td>
    <td headers="LNAME" class="data">KZOCHSKY</td>
    <td headers="FNAME" class="data">TAMARA</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">M100</td>
    <td headers="LNAME" class="data">MARTINEZ</td>
    <td headers="FNAME" class="data">SHEILA</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">P100</td>
    <td headers="LNAME" class="data">PORTER</td>
    <td headers="FNAME" cla
    Edited by: patfmnd on Dec 12, 2012 5:59 PM
    Edited by: patfmnd on Dec 12, 2012 6:07 PM

  • URGENT: Rest web service with get method works fine in browser but not with java client(Android)

    Hi ,
    I have created one REST web service which accepts two parameters send back JSON results.
    I tested the it in browser with URL as http://+Inteernal server+/ords/utimes/login_info?p1=+first_param+&p2=+second_para+
    Web service URL :  http://+Inteernal server+/ords/utimes/login_info?p1={p1}&p2={p2}
    But when java team wants to access it from java code it gives error as "400- Bad Request".
    one more IMP thing : when I test it in RESTful web service by using "set bind variable" , it only set value of first parameter.
    APEX version : 4.2
    Database : 11g (XE)
    ords : 2.0.8
    please help me ASAP.
    regards,
    Nagesh Patil

    Hi Pragya,
    thank you for the update.
    Another question: could you please give us any reference about these corrections you told about? Maybe they could be relevant in our case too.
    Our raised incident number is: 3100851983
    Kind regards,
    Davide

  • Problem with RESTful web service

    I am running into a problem with Flex Web Services (REST) in trying to get the proper format returned. I can see that the HTTP header is set to
    Accept: */*;
    rather than
    Accept: application/xml
    when sending the request. The web service was generated via the web services HTTP data services wizard. I edited it to set the resultFormat to xml
        // Constructor
        public function _Super_UsersService()
            // initialize service control
            _serviceControl = new mx.rpc.http.HTTPMultiService();
             var operations:Array = new Array();
             var operation:mx.rpc.http.Operation;
             var argsArray:Array;
             operation = new mx.rpc.http.Operation(null, "getUsers");
             operation.url = "http://localhost:8888/users";
             operation.contentType = "";
             operation.method = "GET";
             operation.resultFormat = "xml";
             //operation.serializationFilter = serializer0;
             operation.properties = new Object();
             operation.properties["xPath"] = "/";
             operation.resultType = valueObjects.Users;
             operations.push(operation);
             _serviceControl.operationList = operations; 
             model_internal::initialize();
    How does one configure the accept header?

    Hi,
    I have posted a simple application with the RESTful reference:
    http://apex.oracle.com/pls/apex/f?p=13758
    I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
    It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
    This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
    I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
    This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
    class="statusMessage">Bad Request</span>                                         
    </h3>                                         
    </div>                                         
    </div>                                         
    <div id="xWhiteContentContainer" class="xContentWide">                                         
    <div class="xWhiteContent">                                         
    <div class="errorPage">                                         
    <p>                                         
    <ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>                                    
    </ul>Thanks,
    Pat
    Edited by: patfmnd on May 8, 2013 3:33 AM

  • Basic auth with RESTful WEb service and Web Service reference

    Hi, All,
    We have made much progress on getting an application working wtih RESTful web services but now are trying to figure out how to lock down a RESTful Web service while making it available for a particular application.
    We are using one of the sample 'emp' table web services that come with Apex 4.2 and are trying to apply Basic Auth to the WEb Service via Weblogic filter defined in the web.xml file. That works fine. I now get challenged when I try to go to :
    https://wlogic.edu/apex/bnr/ace/hr/empinfo/
    And when I authenticate to that challenge I am able to get the data. (we are usiing LDAP authentication at the Weblogic level)
    However, I am not sure how to get same basic authentication to work with the Web Service reference in my application. I see the error message in the application when I try to call that Web Service:
    401--Unauthorized<
    And I see:
    "The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials"
    How do I provide the credentials in the Web REference or do I provide credentials in the Application?
    Web service works fine if I remove the RESTful web service basic auth from the Web.xml file.
    Should we NOT use Weblogic basic auth and instead use basic auth from Workspace RESTful web service definition. If so, how do we implement THAT basic auth in the Web Service definition and in the Web SErvice Reference on the application?
    Thanks,
    Pat

    What I mean is diid you try to use the PL/SQL package for APEX webservice. Here is an example I use (modified and shortened, just to show how much better this is than to use it from the application).
    CREATE OR REPLACE PACKAGE webservice_pkg
    IS
       PROCEDURE create_webservice (
          p_id            IN       NUMBER,
          p_message       OUT      VARCHAR2,
          p_workspace     IN       VARCHAR2 DEFAULT 'MY_WORKSPACE',
          p_app_id        IN       NUMBER DEFAULT v ('APP_ID'),
          p_app_session   IN       VARCHAR2 DEFAULT v ('SESSION'),
          p_app_user      IN       VARCHAR2 DEFAULT v ('APP_USER')
    END webservice_pkg;
    CREATE OR REPLACE PACKAGE BODY webservice_pkg
    IS
       PROCEDURE set_credentials (
          p_workspace     IN   VARCHAR2,
          p_app_id        IN   NUMBER,
          p_app_session   IN   VARCHAR2,
          p_app_user      IN   VARCHAR2
       IS
          v_workspace_id   NUMBER;
       BEGIN
          SELECT workspace_id
            INTO v_workspace_id
            FROM apex_workspaces
           WHERE workspace = p_workspace;
          apex_util.set_security_group_id (v_workspace_id);
          apex_application.g_flow_id := p_app_id;
          apex_application.g_instance := p_app_session;
          apex_application.g_user := p_app_user;
       END set_credentials;
       PROCEDURE create_webservice (
          p_id            IN       NUMBER,
          p_message       OUT      VARCHAR2,
          p_workspace     IN       VARCHAR2 DEFAULT 'MY_WORKSPACE',
          p_app_id        IN       NUMBER DEFAULT v ('APP_ID'),
          p_app_session   IN       VARCHAR2 DEFAULT v ('SESSION'),
          p_app_user      IN       VARCHAR2 DEFAULT v ('APP_USER')
       IS
          v_envelope          VARCHAR2 (32000);
          v_server            VARCHAR2 (400);
          v_url               VARCHAR2 (4000);
          v_result_url        VARCHAR2 (1000);
          v_collection_name   VARCHAR2 (40)    := 'PDF_CARD';
          v_message           VARCHAR2 (4000);
          v_xmltype001        XMLTYPE;
       BEGIN
          v_url := v_server || '.myserver.net/services/VisitCardCreator?wsdl';
          FOR c IN (SELECT *
                      FROM DUAL)
          LOOP
             v_envelope :=
                   '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" '
                || 'xmlns:bran="http://www.myaddress.com">'
                || CHR (10)
                || '<soapenv:Header/><soapenv:Body>'
                || CHR (10)
                || '<parameter:'
                || 'some_value'
                || '>'
                || CHR (10)
                || '<bran:templateID>'
                || p_id
                || '</bran:templateID>'
                || '</soapenv:Body>'
                || CHR (10)
                || '</soapenv:Envelope>';
          END LOOP;
          set_credentials (p_workspace, p_app_id, p_app_session, p_app_user);
          BEGIN
             apex_web_service.make_request
                                         (p_url                  => v_url,
                                          p_collection_name      => v_collection_name,
                                          p_envelope             => v_envelope
             p_message := 'Some message.';
          EXCEPTION
             WHEN OTHERS
             THEN
                v_message :=
                      v_message
                   || '</br>'
                   || 'Error running Webservice Request. '
                   || SQLERRM;
          END;
          BEGIN
             SELECT    v_result_url
                    || EXTRACTVALUE (VALUE (t),
                                     '/*/' || 'Return',
                                     'xmlns="http://www.myaddress.com"'
                    xmltype001
               INTO v_result_url,
                    v_xmltype001
               FROM wwv_flow_collections c,
                    TABLE
                        (XMLSEQUENCE (EXTRACT (c.xmltype001,
                                               '//' || 'Response',
                                               'xmlns="http://www.myaddress.com"'
                        ) t
              WHERE c.collection_name = v_collection_name;
          EXCEPTION
             WHEN OTHERS
             THEN
                v_message := v_message || '</br>' || 'Error reading Collection.';
          END;
       EXCEPTION
          WHEN OTHERS
          THEN
             p_message := v_message || '</br>' || SQLERRM;
       END create_webservice;
    END webservice_pkg;
    /If you use it this way, you will find out what the problem is much faster.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Problem with RESTful web service with header value

    Hi,
    I am on Apex 4.2.2 and Listener 2.1 and the listener is on WEblogic.
    I succeeded to get a RESTful web service working in an application with no header to obtain a full set of data. The data set is very large, so I am now just trying to set up a web service to get a set of data based on a student ID.
    I followed the examples shown in the RESTful web service module of SQL Workshop and set up a handler of this type:
    https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
    The test for this handler succeeded both for JSON output and CSV output in the Workshop test environment.
    However, when I try it from a Web Service Reference that I created for my application following what looked like the same approach used on the example video, I get NO data back. If I put a 'stid' directly into a URL of a web browser and do the basic authentication I get the data!!
    This is what I have for the Web service reference:
    https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
    Basic auth set to Yes -- and this is working -- I am able to authenticate
    HTTP method Get
    output format Text
    no response Xpath
    no response namespace
    defaults for new record and parameter delimiter
    NO REST input parameters
    Output set for all the fields in the data set queried (same set of data as in my rest service which does not have any http header)
    REST HTTP Header : Name stid
    I there something I am missing. I am not sure how to troubleshoot this further.
    Pat

    Hi,
    I have posted a simple application with the RESTful reference:
    http://apex.oracle.com/pls/apex/f?p=13758
    I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
    It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
    This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
    I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
    This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
    class="statusMessage">Bad Request</span>                                         
    </h3>                                         
    </div>                                         
    </div>                                         
    <div id="xWhiteContentContainer" class="xContentWide">                                         
    <div class="xWhiteContent">                                         
    <div class="errorPage">                                         
    <p>                                         
    <ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>                                    
    </ul>Thanks,
    Pat
    Edited by: patfmnd on May 8, 2013 3:33 AM

  • Problems with Community Bridge (MS REST-Web-Service)

    Hello,
    few days ago I started experiencing problems while connecting to Microsoft TechNet Forums
    by using Community Bridge 3 (MSDN/Social/Partner) and "Forté
    Agent" client. I get the error below from bridge debugger while retrieving headers from Windows Server General Forums
    I subscribed:
    Update threads since (null)
    CreateRequest: https://forumsapi.contentservices.msdn.microsoft.com/threads/?forumId=0b3d1d0b-dfd6-4df9-a87a-80d34d658a5f&sort=createdDate&order=desc&page=1
    WebException: JSON: {
    "errors": [
    "No results found."
    RequestTime: 8348 ms
    Note: The error also appears from any other forum. 
    So I sent bridge debugger collected information to Jochen Kalmbach (the developer).
    The error seems to come from the MS REST-Web-Service.
    Could you confirm the problem ?
    Bye,
    Luca
    Disclaimer: This posting is provided AS IS with no warranties or guarantees, and confers no rights. Whenever you see a helpful reply, click on [Vote As Help] and click on [Mark As Answer] if a post answers your question.

    You might also check on that over here.
    http://communitybridge.codeplex.com/discussions
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Maybe you are looking for

  • Time Machine does not work after Lion Upgrade

    Hi all. I upgraded my iMac to Lion yesterday. I used to run Time Machine through my airport extreme to an external hdd. After the upgrade to Lion I'm unable to do this. When I try to setup Time Machine again, it is not possible to connect to the HDD

  • New express doesn't extend old express network

    My old AirPort Express runs a printer, and AirTunes to our stereo. I just added the new AirPort Express to the network in hopes of extending coverage in the house. Installation went well, and both devices are working. But the signal strength is not i

  • Email notification in oracle 8 i rel 2

    hey , I require some help from you immediately, if any one of the following happens in a table (insert, delete,update), i have to send a mail to a user or group of users. how to do that. Ambrose null

  • Case sensitive column name problem

    I have a strange problem in my application. I install the application on several machines with no problem but in one machine I'm getting an exceptions on: "Column 'SomeColumnName' does not belong to table" the code look like this: DataRow newDataRow

  • Re: AbortTransaction exception,DeSerializationException

    Hi Ed, I know one sure-fire way to make this happen. (I just made it happen yesterday during an experiment.) This is to upgrade PART of your application out of a different repository than you used to generate the application originally. If you do tha