Using a control in a web service

Hi,
I've got a problem where I using a WebServiceControl in a web service is giving me errors when I build.
The error is:
Error with publish task 'WebServicesProjectBuildTask'.
Web services in payment have errors
Web services with errors cannot be compiled.
Error(s) occured during publish assembly. No modules will be published.
I have a web service I've created called PaymentWebService. This web service uses a web service control to call another web service. It seemed to be working fine until I try and use the web service control inside the PaymentWebService. If I comment out the web service control it deploys fine.
The error above is all it gives me, and I've checked through the code quite a few times and there are no build errors or anything like that.
Does anyone have any idea about this? It's driving me nuts.
Thanks,
Daniel

Hi,
Do you have errors in the weblogic log file?
Best regards,
Stéphanie

Similar Messages

  • Using Identity Management for Securing Web Services

    My goal is to associate my services with an Oracle Internet Directory. I made some attempts to set up SAML authentication for the web services, but it didn't have the right outcome.
    (My identity management server and OID is up and running and I have successfully made authentication modules for other web applications)
    Here is what I did:
    1. I wrote a simple java file, used jdeveloper tools to create and deploy it as a web service to OC4J. I associated an identity management server with this service through OC4J web tools as security provider.
    2. I made a data control for the web service and put it in an ADF application . (client)
    3. I deployed the client project(2) to OC4J.
    I could use the web service through the page.
    Then
    I secured the webservice to expect SAML for authentication.
    Surprisingly, the client could still communicate with the webservice, Why? Shouldn't it have rejected the request because of the problem in SAML token? (The proxy and the data control were not secured, and didn't provide any SAML tokens)
    4.
    I added login page to my client project (through ADF security wizard). It used idenity management for authentication successfully. login process completes and web service data control is displayed.
    5. I want the authentication information to be propagated through the page so that the web service receives the data and uses Identity Management.
    I know I should add <property name="oracle.security.wss.propagate.identity" value ="true"/>
    to one of the configuration files, but don't know where exactly.
    Best Regards,
    Farbod

    It doesnt matter whether the service is invoked as part of your larger process or not, if it is performing any business critical operation then it should be secured.
    The idea of SOA / designing services is to have the services available so that it can be orchestrated as part of any other business process.
    Today you may have secured your parent services and tomorrow you could come up with a new service which may use one of the existing lower level services.
    If all the services are in one Application server you can make the configuration/development environment lot easier by securing them using the Gateway.
    Typical probelm with any gateway architecture is that the service is available without any security enforcement when accessed directly.
    You can enforce rules at your network layer to allow access to the App server only from Gateway.
    When you have the liberty to use OWSM or any other WS-Security products, i would stay away from any extensions. Two things to consider
    The next BPEL developer in your project may not be aware of Security extensions
    Centralizing Security enforcement will make your development and security operations as loosely coupled and addresses scalability.
    Thanks
    Ram

  • Using Native Oracle XML DB Web Services - REST POST web service possible?

    My goal is to expose some pl/sql procedures as a REST web services.
    The Database is 11gR2
    The request method needs to be a POST (not GET as a request will perform insert/updates ) - the request body will contain a xml structure
    Have setup XMLDB Database-native Web Services as per
    11g documentation "Using Native Oracle XML DB Web Services"
    It seems this setup support only SOAP requests!?
    RESTful webservice with GET is (sort of) supported using
    Embedded PL/SQL Gateway as describer here:
    http://ora-00001.blogspot.com/2009/07/creating-rest-web-service-with-plsql.html
    Although no support for POST
    Obviously the post is from 2009 so just want to know if anything changed since.
    Has anyone found a way to expose pl/sql procedures using XML DB or other approach as a REST POST web services?
    (As the relative low number of calls/hour and also the aim to have the least amount of moving parts therefor looking for a DB centric solution)
    Thanks
    Pete

    I think the post referred to was more an exercise of what could be achieved. The quickest way, nowadays, to get this done with not too much hassle is via APEX
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35128/restful_svc.htm
    M.

  • Use case for describing a web service

    Dear all,
    I have a fundamental question for describing a web service.
    An analyst will first write (1) a use case for describing the web service and (2) wsdl and xsd files for describing the web service.
    As a developer, I would say that artifact (2) is enough. As an analyst, I would still need to document the requirement in the format of use case specification. However, it is not clear for me what should be put in this use case specification and what is the added value of such a use case.
    Have you any sample example of this kind of use case in order to describe a web service?
    Thanks in advance.
    Pengyou

    wpafbuser1 wrote:
    First, don't post twice. I'd rather see you bump a post then repost the same question.
    Have you any sample example of this kind of use case in order to describe a web service?First, searching Google will show you millions of use cases you can use as examples. Second, why would you think writing a use case for a Web Service would be any different than any other use case?Sorry for posting twice. I thought the first one failed due to a system error but I was wrong.
    From millions of use case I can not find a "good" one.
    I have in fact two conceptual questions:
    1. I have not much to say about the flow of events. It is simply a request and a response. This is much simpler than a "normal" use case. Am I right?
    2. However, I don't know where to put the description of business logic: 2.1 the data sets to be put in the request and response; 2.2 the business logic to construct the response from the request.
    I would appreciate any hint or discussion.
    Pengyou

  • Can use PLSQL to develop PLSQL web services?

    Hi,
    I know we can use JDeveloper to create PLSQL web services.
    How about if we want to develop plsql web services using PLSQL itself, is that possible?
    Please advise.
    Thank you.

    I found the article on how to call web services from within database.
    http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html?_template=/ocom/technology/content/print
    The example is for oracle9iR2.
    It's looks like it's quite a bit of work compare to use java to call web services. I wonder with Oracle10g database, is there any improvement that will simply the steps? Would appreciate some advice as i don't have oracle10g environment in my place.
    Thank you.

  • Help using CollatorEntry for Repository Framework Web Services

    Hi All,
    Just wondering what are the pre-requisites needed for my KM repository before I can use the collator functionality in web services such as the findResrouces function from the Repository Framework web service?
    Should my repository be setup with an index or something? I've been reading the Javadocs and trying a few things out using the WSDL navigator but I have no idea what values I should be putting in for CollatorEntry object. What "name" values should I be putting which correspond to properties?
    Could anyone please provide example inputs to put into the WS Navigator say for the method findResources?
    When I test out the findResources method
    when I input rid: /documents/
    CollatorEntries - element1 - name = displayname
    ascending = false
    I keep getting the error:
    Unable to compare: /documents, /documents/.system
    hmmm searching SDN doesn't really seem to come up with much information except Collators aren't being used in client applications so they won't be discussed in detail
    Any help would be appreciated!

    So I have figured out that I need to be putting in the namespace+localname into this collator entry name field but I have been unable to apply an ascending sort based on the accessRid.
    I've found using the findResources operation I am getting back resource objects that are not in a file heiarchal order (ie. nodes further down the file directory are being returned before their parentRids.)
    Is there a way for me to ensure that findResources returns a sorted array that starts from the top of the document tree and each resource object returned is in the same order as what I see in KM content browser?
    Must be a setting or a property that I am missing, when I  do a getOrderMechanism operation I notice it is an unordered type. I can't set server order mechanism as its not supported yet....
    Does anyone have any suggestions?

  • Calculations in Xcelsius using data generated by a Web Service Connection

    Hi,
    I have set up a web service connection to pull in 4 columns of data: 1. CATEGORY  2. SUBCATEGORY 3. PRODUCT TYPE   4.#OFCALLS.  There will be anywhere from 1 to 500 rows of data depending on day of week and time of day.  The web service sorts the list by #OFCALLS descending. The OUTPUT VALUES of the web service connection are mapped to cells A19:D518.
    Formulas in the spreadsheet take the Top 10 from the list and populate it to cells  A4:D13.  A formula in cell D15 sums the #OFCALLS for the entire web service connection output (A19:D518).
    The data in A4:D15 is mapped to a spreadsheet table on my canvas.   When the report generates, the data from the TOP 10 of the web service connection populates properly, but the cell that should reflect the TOTAL#OFCALLS (D15) shows zero.
    Is it not possible to do additional calculations in the spreadsheet based on data generated by the web service connection?  A major difference between using an XML Map and a Web Service Connection is the XML Map actually populates the spreadsheet with the new data when it is refreshed.  The Web Service connection data never actually appears in the spreadsheet itself, even though it updates to the appropriate vessel on the canvas.   This makes me think that no additional calculations can be done in the spreadsheet based on the web service connection data.
    Can anyone tell me if that is correct?  If so, then the web service connection would also have to pull in the TOTAL#OFCALLS along with the other data.   This would also seem to greatly limit what you could do with data generated by a web service connection, so I am hoping I am wrong and just don't understand how to do this.
    Can anyone clarify this for me?  If I failed to give any pertinent info let me know what it is, and I will update my post.
    Thanks!

    I have seen similar behavior as well.  I have live data coming into Xcelsius from a data connection. 
    A supported Excel formula
    =IF(ISBLANK(J2),I2,VALUE(TODAY()-J2))
    is then applied to one of the columns to create an additional derived column.
    Taking a snapshot of the data shows that the derived column is being populated, however the controls I've tried hooking up to the derived column (charts and labels) are always empty.
    Information on whether this is supported would be appreciated.
    Thank you,
    David

  • NULL values and Data Control based on Web Service

    One of my ADF control is based on a Data Control created through a web service. Every thing is working fine except the way ADF control is handling the null values return by the web service based data control.
    For example for null columns the web service is sending the following:
    <ns0:beginDate xsi:nil="1"/>
    or
    <ns0:sourceCode xsi:nil="1"/>
    But the corresponding column in my ADF data control is trying to initialize itself using the value ‘[{nil=1}]’. It fails with the following error.
    2006-04-20 13:31:37.510 WARNING JBO-25009: Cannot create an object of type:java.util.Date with value:[{nil=1}]
    I will appreciate if someone could help me resolve this issue.
    Thanks,

    I tried again, but it seems that I'm unable to reproduce this in a test project which uses another data controls but is still as similar as possible to the original project in which I've encountered this behaviour.
    However, using a data control based on the same web service as in the original project, [{nil=1}] appears again instead of emtpy values.
    Is it possible that there is a significant difference in the generated wrapper classes? The underlying PL/SQL is the same (in strucutre) and the corresponding elements in the response XML of the web service are the same in the two cases, always like <ns0:someResponeValue xsi:nil="1"/>, so I don't know how it is possible that I can't reproduce this behaviour.
    A short description of the projects:
    Services/Model:
    I created a PL/SQL funcition in a package that returns a user type object. This return parameter consists of a non-empty string and a null value string. On top of this I created a PL/SQL web service and a data control for that.
    View/Controller:
    A JSF JSP page which has a read-only form showing the return values of the web service.
    Regards,
    Patrik

  • Use OWB with java or web service

    Instead of using Oracle warehouse builder GUI design and control center, may I use Java or Web services to access the functionality of warehouse builder.
    where can I find these Java or web services API document.
    Thanks

    I think I can answser my own question by some investigation now. Javadoc is here:
    http://download-west.oracle.com/docs/html/B12155_01/index.html
    but looks like this never been metioned. does it means code to Java API is not recommanded?
    also, still not able to find any tutorial about using this APIs except javadoc

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

  • Is Axis used in creation of a web service via Jdeveloper?

    I have a very simple java class that I am selecting and having the wizard create a web service. What actually is being done behind the scenes? Does Jdev 10g use Axis to create the Jax-rps web service? If so how can I change the parameters passed to the Axis calls. I need to force the creation of the web service to use SOAP 1.1 and WSDL 1.1. I have to consume this with a AXIS1 client.

    Hi Matthias,
    You can try using the ICF Recorder in TCode SICF, steps below:
    [http://help.sap.com/saphelp_nw70/helpdata/en/12/adc54044ed7b2de10000000a155106/frameset.htm]
    That should at least catch the entire client request (1:1) before the error occurs. Remember to de-activate the recorder after you're done. There's also an option to activate a ICF trace using the similar menu path, this also should be de-activated once you're completed.
    Regarding the SOAMANAGER traces, it needs to be activated before anything is logged there. That might be why you're not seeing anything there.
    Regards, Trevor

  • How to use generated code from "Import Web Services" with Cairngorm Framework

    I recently downloaded Flex Builder 3 beta 2 and tried out the
    wizard that lets you import web services. The code that is
    auto-generated makes if fairly straight forward to consume web
    services using the object types defined in the WSDL. No longer does
    the developer need to decode the XML payload! The only problem I am
    having is how does you integrate the auto- generated code with the
    Cairngorm framework? This seems like a huge question for anyone who
    might want to leverage Cairngorm and the auto-generated proxy code
    in the same project (like me).
    Here are the problems that I see so far.
    1) How do you configure the generated service class to work
    with the Cairngorm service locator? The service constructor only
    accepts a “LCDS destination string” which implies that
    you must use Lifecycle data services. Unfortunately, the project I
    am trying to retrofit currently uses a WebService and does not use
    data services. All I really need to do is change the endpoint URL
    (ie from local to a development server). This issue is noted in the
    bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
    needed is a way to set the endpointURI in the Services.mxml file.
    2) Even if I come up with a hack around #1, I do not receive
    a callback to my IResponder even though I register it immediately
    after the method call. I can register and listener function within
    my business delegate and receive the callback, but my Command
    object, which implements IResponder, does not receive the call back
    even though it is registered. From what I read in the ASDocs it
    should but it doesn’t for me!
    These are the issues I have observed in 3 hours of messing
    with this. I hope this makes sense. I would love to integrate
    auto-generated web service proxies into Cairngorm but I don’t
    see a straight forward way without re-architecting Cairngorm. Has
    any one else run across this issue? If so, do you have any insights
    on how to proceed? Any help is appreciated.

    Since I posted this question, I have abandoned the notion of
    auto-generated web services and embraced the good old FDS concept
    where the RemoteObject meta-tag does all the conversion work for
    me. We are now using the Granite DS package and it is working well
    for us. I would love to consume web services, but it just isn't
    worth the hassle when all you have to do with Granite (and FDS) is
    cast your return objects to the proper object type.
    BTW, since this posting, I have investigated competing Flex
    app frameworks. After my research, I checked out the PureMVC
    framework. Wow!! Cairngorm always left me with an uneasy feeling
    and I guess I am not alone. Apparently, Cliff Hall felt the same
    way. That is why he started the project. I like his approach alot
    more than Cairngorm especially since it includes notifications
    which allow me to broadcast my own app level events independent
    from the AS Event framework. Check out PureMVC. For what it is
    worth, it has my humble endorsement. Cliff was even gracious enough
    to acknowledge the other Adobe Consulting guys for their work. Good
    for you Cliff, I respect that. Check out a better way at
    http://www.puremvc.org/

  • How to install eclipse and MyEclipse and use it for jsp-servlet-web service

    hi ,
    please help me to install eclipse 3.1 and How to integrate MyEclipse to do jsp-servlet programming and web services.
    please also help me to include application server like tomcat and axis and use that environment in MyEclipse ide.
    please help me.....

    At the time of installation , you can't change SID XE.
    After installation, you can add another service name
    Check following thread for more details
    Re: How to create service on Oracle 10g XE
    - Virag Sharma
    http://virag.sharma.googlepages.com
    http://viragsharma.blogspot.com

  • Can I alter soapAddress using script before making a web service connection

    Originally I set up a data connection on Data View using a local wsdl file.
    I found following codes on the XML source:
    <connectionSet xmlns="http://www.xfa.org/schema/xfa-connection-set/2.1/">
       <?originalXFAVersion http://www.xfa.org/schema/xfa-connection-set/2.1/?>
       <wsdlConnection name="WebServiceDC" dataDescription="WebServiceDCgetAddressXMLDD">
          <soapAddress>https://myURL/myWebServiceFunction</soapAddress>
          <wsdlAddress>.\myWebServiceFunction.wsdl</wsdlAddress>
          <soapAction/>
          <operation input="getAddressXMLRequest" output="getAddressXMLResponse">getAddressXML</operation>
          <?templateDesigner fileDigest shaHash="uKcwzAn9YOsLHWypIz9ycuoeBPE="?></wsdlConnection>
    </connectionSet>
    Does it mean that if I use the form on another machine, I need to place the same file myWebServiceFunction.wsdl on the exact location of the form as well?
    Another question:
    How about I set up a data connection on Data View using a wsdl file from web.
    Then is it possible to change the <soapAddress> from script to alter the connection before I issue:
    xfa.connectionSet.WebServiceDC.execute(false);
    I need to do this because the wsdl's soapAddress point to another endpoint that I need to change.
    Or should I write script at all to make the data connection?
    Rgds.

    Just find from the forum that it cannot be altered but need to be cloned first:
    var oCS = xfa.connectionSet.WebServiceDC.clone(1);
    oCS.soapAddress.value = "http://pgdell:8080/soap/services/WebServiceTest";
    oCS.execute(0);
    But I have a question, how can I access the data returned from the cloned connection oCS?
    Originally in the postExecute event of WSResponsePreProc :
    var rootXml = null;
    var soapFault = null;
    if (xfa.event.soapFaultCode)
         soapFault = {code:xfa.event.soapFaultCode, message:xfa.event.soapFaultString};
    else
         rootXml = xfa.datasets.connectionData.WebServiceDC.Body;               <=========  how can I refer to the cloned oCS  ??
    preProcessor.processResponse(rootXml, soapFault);
    Rgds.

  • Using PFX certificate to call web services

    Hi,
    I need to use a PFX certificate to invoke a web services over HTTPS using a simple Java client; I've followed these steps:
    1 - convert .pfx certificate in .cer format: I've imported the certificate in Internet Explorer and then exported in .cer format
    2 - write a simple code before invocation of web service like this:           System.setProperty("javax.net.ssl.trustStore","C:\\myCertificate.cer");
    System.setProperty("javax.net.ssl.trustStoreType","PKCS12");
    System.setProperty("javax.net.ssl.trustStorePassword","myPwd");but it does'nt work and this exception occured:
    java.net.SocketException: Default SSL context init failed: DerInputStream.getLength(): lengthTag=109, too big.Then I've tried to import my certificate in a jsk keystore by keystore tool; after I've changed my code like this:
    System.setProperty("javax.net.ssl.keyStore","C:\\myjks.jks");          
    System.setProperty("javax.net.ssl.keyStoreType","JKS");     
    System.setProperty("javax.net.ssl.keyStorePassword","myPwd");but the eception is:
    sun.security.validator.ValidatorException: No trusted certificate foundWich are the right stpes to use a pfx certificate in a Java environment?
    Thanks in advance.
    Rob

    I've resolved my problem coding a custom SecureSocketFactory which I load programmatically into my SSL Context and then activate in my Axis client:
    public class MySocketFactory implements SecureSocketFactory {
         private Hashtable ht;
         public MySocketFactory(Hashtable ht) throws Exception {
         this.ht = ht;
         public Socket create(String host, int port, StringBuffer hds,
                   BooleanHolder bh) throws Exception {
              SSLSocket theSocket = null;
              try {
                   KeyStore keyStoreKeys;
                   KeyManagerFactory keyMgrFactory;
                   SSLContext sslContext;
                   keyStoreKeys = KeyStore.getInstance("PKCS12");               
                   keyStoreKeys.load(new FileInputStream("mykey.pfx"),"mypwd".toCharArray());
                   keyMgrFactory = KeyManagerFactory.getInstance("SunX509");
                   keyMgrFactory.init(keyStoreKeys, "mypwd".toCharArray());
                   sslContext = SSLContext.getInstance("SSL");
                   sslContext.init(keyMgrFactory.getKeyManagers(), null, null);
                   SSLSocketFactory socketFactory = sslContext.getSocketFactory();
                   theSocket = (SSLSocket) socketFactory.createSocket(host, port);
              } catch (Exception e) {
                   e.printStackTrace();
              return theSocket;
    }Then, in my proxy client, I activate in Axis my factory by this statement:
                   AxisProperties.setProperty("org.apache.axis.components.net.SecureSocketFactory", "socketfactory.MySocketFactory");bye
    Rob

Maybe you are looking for