Proxy Generator

Greetings,
Our company utilizes Vovici survey solutions. I am attempting
to integrate the reporting using their API into out KM analytics
reporting dashboard. I can connect using the CFMX proxy generator,
but I could not pull data back. I contacted them and this was the
response from one of their developers...
quote:
You need to ensure that the CookieContainer property of the
proxy class you're using to call the web service has been set to a
valid CookieContainer object. This is how the EFM Community web
service API maintains state between method invocations. If this
property isn't set, you'll be able to login but the very next
function you attempt to call will result in an "Invalid Access"
exception because--as far as EFM Community is concerned--you
haven't logged in.
Here's how this is done in C#:
using System;using System.Collections.Generic;using
System.Net;namespace exampleapp{ class Program { static void
Main(string[] args) { ProjectData projectData = new ProjectData();
projectData.CookieContainer = new CookieContainer();
projectData.Login("myuserid", "mypassword"); ...
I am not a C# developer and our site is done in CF anyway.
Does anyone know how to accomplish this? I could not find anything
in any of the documentation beyond the basics.
Thanks,
~Clay

Here is the code you asked for...
<cfinvoke
webservice="
http://efm.activant.com/ws/projectdata.asmx?wsdl"
method="login"
returnvariable="aString">
<cfinvokeargument name="userName" value="Yada"/>
<cfinvokeargument name="password" value="Yada"/>
</cfinvoke>
<cfinvoke
webservice="
http://efm.activant.com/ws/projectdata.asmx?wsdl"
method="getSurveyList"
returnvariable="a_GetSurveyListResponse_GetSurveyListResult">
<cfinvokeargument name="sharingType" value="0"/>
</cfinvoke>
Survey List -
<cfoutput>#a_GetSurveyListResponse_GetSurveyListResult#</cfoutput>

Similar Messages

  • Getting Error while creating the proxy generator in Dot Net Connector 2003

    Hi,
    While creating the proxy generator in Dot Net Connector 2003 i am getting following error: I am successfully able to login into the SAP system and able to select the SAP tables but during the final step of proxy generator wizard i am getting following error:
    <b>----
    Error in Proxy-Generator
    To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
    Inner error was:
    Object reference not set to an instance of an object.
    OK  
    </b>
    I have already installed the Java JVM on my machine its version is as follows:
    <b>java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)</b>
    Regards,
    Ravi Shah

    Hi Amit,
    I doing good!!!! Thanks for the response.
    I uninstalled the earlier version of JVM and installed the latest version of JVM i.e. jre-1_5_0_09-windows-i586-p.
    I got the proper entries under registry mentioned below:
    <b>Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_09]
    "JavaHome"="C:
    Program Files
    Java
    jre1.5.0_09"
    "UseJava2IExplorer"=dword:00000001
    "HideSystemTrayIcon"=dword:00000000
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
    "CurrentVersion"="1.5"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5]
    "JavaHome"="C:
    Program Files
    Java
    jre1.5.0_09"
    "RuntimeLib"="C:
    Program Files
    Java
    jre1.5.0_09
    bin
    client
    jvm.dll"
    "MicroVersion"="0"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_09]
    "JavaHome"="C:
    Program Files
    Java
    jre1.5.0_09"
    "MicroVersion"="0"
    "RuntimeLib"="C:
    Program Files
    Java
    jre1.5.0_09
    bin
    client
    jvm.dll"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
    "Country"="IN"
    "PostStatusUrl"="https://sjremetrics.java.com/b/ss//6"
    "EnableJavaUpdate"=dword:00000001
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
    "CurrentVersion"="1.5.0_09"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_05]
    "Home"="C:
    Program Files
    Java Web Start"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_02]
    "Home"="C:
    Program Files
    Java Web Start"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_09]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"</b>
    After installation I opened the Dot Net connector proxy client wizard . I followed the series of step during Dot Net connector configuration:
    1. selected the SAP connector.
    2. The next screen 'Enter Logon Information' comes where i entered the following information System as 'custom', host='IP address', Id='00' but by default it turns to '0' , client='800', user='user id' and password ='password'.
    3. After clicking on Next button i am successfully logon into the SAP system.
    4. The next screen in the wizard is 'selectall the remote function modules that you want to be part of your proxy object'. After selecting the SAP tables and clicked on Next button I am getting following error
    <b>
    Error in Proxy-Generator
    To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
    Inner error was:
    INFO: using logging implementation "AII Logging"
    Exception in thread "main" com.sap.aii.upload.api.LoginException$WrongPassword: Invalid user/password combination
         at com.sap.aii.upload.sap.SAPConnection.connect(SAPConnection.java:94)
         at com.sap.aii.upload.sap.SAPConnection.<init>(SAPConnection.java:38)
         at com.sap.aii.upload.tool.RFC2WSDLTool.getWSDLforRFCs(RFC2WSDLTool.java:81)
         at com.sap.aii.upload.tool.RFC2WSDLTool.main(RFC2WSDLTool.java:196)
    OK  
    </b>
    Thanks and Regards,
    Ravi Shah

  • Multi-part input message problem in webservice Proxy generator

    While generating a java proxy for an Oracle Access Manager Identity XML operation I get the following.
    Generating proxy
    WARNING: ignoring operation "OblixIDXML_um_modifyUser": input message with multiparts is not WS-I compliant and is not currently supported
    Proxy generation finished
    See wsdl (document\litteral) fragment:
         <message name="OblixIDXMLInput">
              <part name="authentication" element="oblix:authentication"/>
              <part name="request" element="oblixxmllocalschema:request"/>
         </message>
    It is poosibel to generate the Proxy when the authentication part is removed from the message.
    My question: Are there work arounds for generating a client with Jdev (10.1.3) that can be deployed on SOA suite 10.1.3 (this service call is part of a composite service).
    For instance calling proxy generator from command line like a wsdl2java (Axis like) or editing some (generated) source code files after generating the service with one part removed.
    Regards,
    Bert

    While generating a java proxy for an Oracle Access Manager Identity XML operation I get the following.
    Generating proxy
    WARNING: ignoring operation "OblixIDXML_um_modifyUser": input message with multiparts is not WS-I compliant and is not currently supported
    Proxy generation finished
    See wsdl (document\litteral) fragment:
         <message name="OblixIDXMLInput">
              <part name="authentication" element="oblix:authentication"/>
              <part name="request" element="oblixxmllocalschema:request"/>
         </message>
    It is poosibel to generate the Proxy when the authentication part is removed from the message.
    My question: Are there work arounds for generating a client with Jdev (10.1.3) that can be deployed on SOA suite 10.1.3 (this service call is part of a composite service).
    For instance calling proxy generator from command line like a wsdl2java (Axis like) or editing some (generated) source code files after generating the service with one part removed.
    Regards,
    Bert

  • Flex Builder 3 - Web Service Proxy Generator

    Hi guys,
    I am investigating the web service proxy generator that is part of FB3. I can't seem to get it working properly and wondered if anyone else has managed to succeed.
    I am using WSDL files that are generated from RFC-enabled function modules using the web service browser on a WAS ABAP.
    I have chosen two quite simple function modules. RFC_SYSTEM_INFO and BAPI_USER_GETLIST.
    The WSDL files are retrieved from the URLs /sap/bc/soap/wsdl11?services=RFC_SYSTEM_INFO and /sap/bc/soap/wsdl11?services=BAPI_USER_GETLIST on my server.
    I am following the Adobe documentation at http://livedocs.adobe.com/flex/3/html/help.html?content=data_4.html#151327
    Anyway, I generate the proxies and then try to use them.
    First I call the RFC_SYSTEM_INFO web service like this...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ws="au.com.yelcho.*">
        <ws:RFC_SYSTEM_INFOService id="myWebService" />
         <mx:Button label="Call Web Service" labelPlacement="top" click="myWebService.rFC_SYSTEM_INFO_send()" x="97" y="10"/>     
         <mx:Label x="60" y="43" text="Current Resources"/>
         <mx:Text id="txNameOutput1" text="{myWebService.rFC_SYSTEM_INFO_lastResult.CURRENT_RESOURCES}" x="185" y="43"/>
         <mx:Label x="54" y="69" text="Maximal Resources"/>
         <mx:Text id="txNameOutput" text="{myWebService.rFC_SYSTEM_INFO_lastResult.MAXIMAL_RESOURCES}" x="185" y="69"/>
         <mx:Label x="105" y="95" text="RFC HOST"/>
         <mx:Text id="txNameOutput2" text="{myWebService.rFC_SYSTEM_INFO_lastResult.RFCSI_EXPORT.RFCHOST}" x="185" y="95"/>
    </mx:Application>
    At first glance this seems to work, but on closer inspection it turns out that not all the returned XML payload has been extracted properly.
    Attributes at the top level, like CURRENT_RESOURCES work fine. Attributes at a lower level, like RFCSI_EXPORT.RFCHOST are empty.
    It is even more difficult when I try and call the BAPI_USER_GETLIST service because it requires input parameters. Testing with XMLSpy I found that I need to pass the MAX_ROWS and USERLIST parameters to get the SOAP call to work.
    I have been unable to figure out how to pass these parameters so that the web service call takes place properly. I have tried using both the MXML and ActionScript methods.
    It is entirely probably that, as I haven't played with Flex for some months, I have forgotten some vital piece of information on how to do this.
    Any help would be appreciated.
    Cheers
    Graham Robbo

    Hi Raja,
    thanks for your ongoing help with this, but you have confused me again - notr a hard this to do.
    When I generate the proxies from BAPI_USER_GETLIST I get the following .as files created..
    BAPIRET2.as
    BAPIUSNAME.as
    BAPIUSSEXP.as
    BAPIUSSRGE.as
    BAPI_USER_GETLISTResultEvent.as
    BAPI_USER_GETLISTService.as
    BAPI_USER_GETLIST_request.as
    BaseBAPI_USER_GETLISTService.as
    BaseBAPI_USER_GETLISTServiceSchema.as
    FIELD_type0.as
    FIELD_type1.as
    FIELD_type2.as
    FIELD_type3.as
    FIELD_type4.as
    FIELD_type5.as
    FIRSTNAME_type0.as
    FIRSTNAME_type1.as
    FULLNAME_type0.as
    FULLNAME_type1.as
    HIGH_type0.as
    HIGH_type1.as
    HIGH_type2.as
    HIGH_type3.as
    IBAPI_USER_GETLISTService.as
    ID_type0.as
    ID_type1.as
    LASTNAME_type0.as
    LASTNAME_type1.as
    LOGOP_type0.as
    LOGOP_type1.as
    LOG_MSG_NO_type0.as
    LOG_MSG_NO_type1.as
    LOG_NO_type0.as
    LOG_NO_type1.as
    LOW_type0.as
    LOW_type1.as
    LOW_type2.as
    LOW_type3.as
    MESSAGE_type0.as
    MESSAGE_type1.as
    MESSAGE_V1_type0.as
    MESSAGE_V1_type1.as
    MESSAGE_V2_type0.as
    MESSAGE_V2_type1.as
    MESSAGE_V3_type0.as
    MESSAGE_V3_type1.as
    MESSAGE_V4_type0.as
    MESSAGE_V4_type1.as
    NUMBER_type0.as
    NUMBER_type1.as
    OPTION_type0.as
    OPTION_type1.as
    OPTION_type2.as
    OPTION_type3.as
    PARAMETER_type0.as
    PARAMETER_type1.as
    PARAMETER_type2.as
    PARAMETER_type3.as
    PARAMETER_type4.as
    PARAMETER_type5.as
    RETURN_type0.as
    RETURN_type1.as
    SELECTION_EXP_type0.as
    SELECTION_EXP_type1.as
    SELECTION_RANGE_type0.as
    SELECTION_RANGE_type1.as
    SIGN_type0.as
    SIGN_type1.as
    SYSTEM_type0.as
    SYSTEM_type1.as
    TYPE_type0.as
    TYPE_type1.as
    USERLIST_type0.as
    USERLIST_type1.as
    USERNAME_type0.as
    USERNAME_type1.as
    WITH_USERNAME_type0.as
    WITH_USERNAME_type1.as
    So my question is where do the datatypes...
                  TABLE_OF_BAPIRET2;
                   TABLE_OF_BAPIUSSEXP;
                   TABLE_OF_BAPIUSSRGE;
                   TABLE_OF_BAPIUSNAME;
                   TABLE_OF_BAPIUSNAME;
    ...come from?
    Is your proxy generator creating something mine isn't or did you create these yoursefl?
    Cheers
    Graham Robbo

  • JCo Proxy Generator - not getting past Logon step in Wizard

    I'm running the 2.0.11 version of the SAP NetWeaver Developer Studio and want to try out the JCo Proxy Generator.
    I can start the wizard and enter the connection details for a "Single System".  But when I click next all I see is a progress bar before it disappears leaving me on the logon step of the wizard.
    Has anyone else experienced and solved this?
    All help much appreciated.
    Chris.

    I downgraded to version 2.0.9 of JDT.  The JCo Proxy Generator works in that release.
    Regards,
    Chris.

  • Error in Proxy Generator

    Hi
    I am enable to connect to SAP using SAP Connector.in VS2003.it is through an error
    Error in Proxy-Generator
    To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
    Inner error was:
    INFO: using logging implementation "AII Logging"
    com.sap.aii.upload.api.LoginException: Invalid user/password combination
    at com.sap.aii.upload.sap.SAPConnection.connect(SAPConnection.java:113)
    at com.sap.aii.upload.sap.SAPConnection.<init>(SAPConnection.java:59)
    at com.sap.aii.upload.tool.RFC2WSDLTool.getWSDLforRFCs(RFC2WSDLTool.java:63)
    at com.sap.aii.upload.tool.RFC2WSDLTool.main(RFC2WSDLTool.java:178)
    Exception in thread "main"
    How do i fix the problem?
    Thanx

    I had the same trouble with that version of Connector why don't you try to work with 2.0.1 i were allowed to connect to our SAP environment.

  • Add web service proxy generator

    Hi, when I try to add a web service the proxy generator dropdown menu shows the text "Edit proxy generator list".  When I click on it it displays several proxy generators including .net vb, the one I want.  When I click done it returnes to the previous list box but does not list any choices.  As suggested in another forum I reloaded Dreamweaver, but this did not help.  Any ideas?
    Thanks, Tom

    Hi Tom,
    I' needed to create a proxy for a web service some days ago too. First think you should know is that web services support for .NET in DW CS4 has been removed. Now there's only web services components for ColdFusion.
    Anyway I will explain how I created mine...
    I tryed to create the proxy with DW CS3. First think I've noticed is that it ask to install Microsoft .NET Framework SDK.
    After installing last version of the .NET SDK I've noticed that DW CS3 doesn't recognized it. What finally did was to look at the edit proxy generator list, there you can see the commands used to create the proxy:
    wsdl /l:VB $$WSDLFILE
    vbc /t:library /r:System.dll,System.Data.dll,System.Web.Services.dll,System.XML.dll *.vb
    The first one creates the proxy source, the second compiles it into a DLL.
    I've just opened the DSK command prompt and used this commands manually. This way I finally got the proxy DLL compiled.
    It's my first time trying to consume a web service with .NET and it's really hard and confusing to do all this stuff. Now I'm stucked with my proxy DLL, but I can import it in my .NET code.
    If you can solve the next step I would be pleased to know.
    Regards!

  • SAP Explorer and Proxy generator 2008

    Hi experts,
    I'm trying to use the Aconcagua IT SAP Explorer and proxy generator 2008 with microsoft visual studio 2008,
    and I'm facing a problem. The version of Aconcagua plugin  in is evaluation.
    I am able to connect to SAP server and see the list of all Z* function RFC enabled, but when I try to generate the Client proxy
    I receive the exception message :
    Cannot build the proxy of "name function" .
    Exception: The method or operation is not implemented.
    Anyone has some experience in using this plugin?
    The ABAP function I'm calling is correct and RFC enabled,
    am I missing some step?
    I loaded the references of Aconcagua including SAP.Connector and SAP.Connector.RFC, but I'm not able to add
    librfc32.dll.
    Please help, I have to develop a call from C++ to SAP system quikly!!
    Thanks in advance,
                                   Paolo F.C.

    Hi Amadeusz,
    Well, it explains why ES Explorer Tools Options is not available.
    It is very important that Visual Studio will be closed during ES Explorer for .NET installation.
    I would suggest you to close all open Visual Studio instances, uninstall and then install again ES Explorer for .NET.
    Regards,
    Rima.

  • WEB SERVICE PROXY GENERATED USING 11.1.1.5.0 WSDL FAILS WITH 11.1.1.6.0

    I have created a Web Service Proxy project in Jdev using BI Publisher 11.1.1.5.0 WSDL (ReportService). Generated ReportService_Service method uses following QName to get the port:
    namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
    localPart = "*v2/ReportService*"
    Reports are generated successfully via Web Services when using BI Publisher 11.1.1.5.0 but when I use BI Publisher 11.1.1.6.x, it fails with this exception:
    +'javax.el.ELException: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}v2/ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/v2}ReportService'+
    I noticed that if the Web Service Proxy project is created using BI Publisher 1.1.1.1.6.0 WSDL (ReportService), the generated ReportService_Service method uses following QName to get the port:
    namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
    localPart = "*ReportService*"
    We are supporting both 11.1.1.5.0 and 11.1.1.6.x, so is there a way to make it work with both.
    FYI, I have tried removing v2 but then it only works with 11.1.1.6.0 and fails with 11.1.1.5.0.
    +Caused By: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/*v2}v2/*ReportService+

    Dear,
    found the solution (after trying last 1-2 days ...).
    I was already using java 1.7 update 7.
    I had to start java settings and to deselect Java 1.7.0_07.
    Instead I selected latest Java version from Apple: 1.6.0_35-b10-428.
    With these settings the installer finishes without crash.
    Kind regards
    Lorenz
    Edited by: Lorenz on Oct 4, 2012 1:47 PM

  • Build WebDynpro model from Proxy generated by XI

    Hi all,
    usually it's very simple to generate a WebDynpro Model according to a BAPI structure using a generated proxy.
    If I generate such proxy via XI it seems that it is not possible to use it in an analogous way.
    Does anybody have experiences with using "XI-proxies" out of WebDynpro.
    Thanks in advance.
    Mark

    Hello,
    I just found out the solution... It is a little bit tricky! The documentation gives you the advice to set the proxy according the ones within your browser! I did this, but it didn't work out! Finally I disabled the whole proxy setup and now it works
    Markus

  • Bind Proxy Generated Type to Pojos

    hi,
    I wondered when I generate a web service proxy it creates types (classes) based on the web service WSDL. If I already have classes available can I tell the proxy generation to use the existing classes? Are there examples of this?
    Thanks
    Stephen

    Hi,
    I guess you're using JDev to generate the WS Proxy. If yes, then maybe you should ask this question on [JDev forum|http://forums.oracle.com/forums/forum.jspa?forumID=83]. Because AFAIK, JDeveloper did not leverage anything from WLS WebServices to generate the proxy code.
    -LJ

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

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

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

  • Loadjava ...a web proxy generated by JDeveloper

    I'll try to be brief...
    two db servers communicate throgh a web service.Based on that Web Service( ws-for short) I'm doing a web proxy,witch I am loading into a database...and then I can do calls to it through pl/sql(create function ...as laguage java..).
    The problem is when I try to execute this function...in am prompted for many libraries...witch I found in the <jdeveloper home>...but there are many...and if I load some ...they are invalid...so I try to compile them...some do compile some don't(they need another library/class...and so on)
    Is there a method to avoid all this? so I should be able to use the proxy...
    My config is:
    jdev10131--10gR2
    ps: I am interested to communicate between 2 9iR2 with a WS hosted on a Oracle AS 10g .can I?

    Hi there,
    10.1.3 is not production ready yet, and you will find this warning on the oracle page http://www.oracle.com/technology/tech/java/oc4j/1013/index.html
    "Under no circumstances should it be used in production environments."
    Does this mean that it's not possible to deploy a Doc/Lit webservice to production using JDeveloper? Is there any other way of getting it to work with 10.1.2?
    Thanks,
    Vid.

  • OER: Generate Web Service Proxy REX in JDeveloper

    Hi,
    I want to generate a Web Service Proxy for REX (OER version 11.1.1.5.0) using JDeveloper 11.1.1.5.0. I am using JAX-RPC Weblogic Style. When I start the Web Service Proxy Generator it fails with the following error:
    "The WSDL document contains the following errors:
    Operation "assetTypeTabsRead" and "assetTabApprove" have conflicting SOAPAction avlues. Do not overload any operation or given unique SOAPAction value to each operation binding.
    And many more (42481) ...."
    I am looking for the correct way to generate a Service Proxy foor REX and JDeveloper. Any help is appreciated.
    Best regards,
    Sjoerd
    Edited by: Sjoerd Aalbers on Dec 11, 2011 2:18 PM

    'Generate Web Service Stub/Skeleton' option in 10.1.2, was replaced by 'Generate Web Service Proxy' in 10.1.3

  • Adding security to a web service then generating a proxy [SOLVED]

    Hi
    I generated a web service based on a very simple java program. I have deployed it to a local oc4j install and successfully called it from a proxy generated from jdev. I am using 10.1.3.3.0.
    I added security to the web service and regenerated the proxy. I wanted to see the difference in the SOAP messages sent to the web service. However the proxy does not seem to have changed to take account of the new security settings on the web service.
    The security options I set were:
    On main security dialog: Ticked the port and "Text Password"
    On Authentication: Ticked "Expect Username ti Authenticate"
    "Password Required"
    Password Type = "Plain Text"
    "Nonce Required in Token"
    "Creation Time Required in Token"
    I have 2 questions:
    1. How do I get the proxy to send SOAP messages that contain the security headers required to run the web service. Here is the main method from my proxy. I thought adding setUsername and setPassword would be the solution
        public static void main(String[] args) {
            try {
                gpn3.Getphonenum3SoapHttpPortClient myPort = new gpn3.Getphonenum3SoapHttpPortClient();
                System.out.println("calling " + myPort.getEndpoint());
                // Add your own code here
                myPort.setUsername("oc4jadmin");
                myPort.setPassword("welcome");           
                myPort.getNum("Lisa");
            } catch (Exception ex) {
                ex.printStackTrace();
    2. When the web service receives a user name and password what does it check them against? I assume the oc4jadmin user will be allowed access but how do I set up other users?
    many thanks
    paul schweiger
    Message was edited by:
    [email protected]

    I have figured this out now
    1. I needed to set the same security settings in my proxy as I did for my web service. I had assumed that the proxy would generate the necessary security settings from the web service.
    2. For some reason my web service application is using the system level jazn-data xml file
    oc4j_extended_101330/j2ee/home/config/system-jazn-data.xml
    This does include the oc4jadmin user and I am now able to use that account to call the web service. I also managed to add another user and use that account to call the web service successfully.
    Thanks for the help
    paul

Maybe you are looking for

  • A serious problem with flush 11.3 on Windows XP! Forgive assistance.../Серьёзная проблема с флешем..

    Я вчера поставил и обнаружил проблему со звуком.(если смотреть видео с звуком(разумеется) или слушать муз через инет(браузер(вообщем где задействован хоть как то  флеф-плеер) звук какой то с разрывами(слушать не возможно).... Это как и в флеше для та

  • Why all the videos are in the same folder

    Hi, Is there a way to put videos in a different folder or they always ended up in the same folder on the Ipod, any help would be .... thanks Mike

  • Servlet Class dependency is not found at weblogic startup.

    I have the following ear file which includes: web-inf\lib (contains all the needed utilities jar) *ejb.jar *webapp.war (The WEB-INF\lib dir inside war file contains all the needed utilities jars. I get the following BEA-101250 error saying that a ser

  • Getting windows on a mac

    I'm thinking about making the switch from PC to Mac. What is the best way to get a dual OS running? I'd like to get Vista Business so that I can have easy connectivity with my school's network. What difficulties can I expect to have? What do I need t

  • Flicker when updating jTable

    I have an application using a jTable. When updating this jTable with a new row there is some annoing flicker - especially if i have many rows in my table. Seems like when swing is repainting i have the last marked line twice in the table, both on top