Stub generated in Jdev9i for webservice with 'Vector' return type

Hi,
In the OAF page that I am developing, I am trying to consume a web service generated in SAP PI using Jdeveloper. My Jdeveloper version is 9.0.3.5(I need to use this version since I need to deploy the OAF page in EBS11i). The stub generated based on the WSDL is given below.
import oracle.soap.transport.http.OracleSOAPHTTPConnection;
import org.apache.soap.encoding.soapenc.BeanSerializer;
import org.apache.soap.encoding.SOAPMappingRegistry;
import org.apache.soap.util.xml.QName;
import java.util.Vector;
import org.w3c.dom.Element;
import java.net.URL;
import org.apache.soap.Body;
import org.apache.soap.Envelope;
import org.apache.soap.messaging.Message;
* Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
* Date Created: Tue Jan 25 16:12:55 IST 2011
* WSDL URL: file:/C://Working/XXXXXXX/RegConsComplaint_OB.wsdl
public class RegConsComplaint_OBServiceStub
  public RegConsComplaint_OBServiceStub()
    m_httpConnection = new OracleSOAPHTTPConnection();
  public static void main(String[] args)
    try
      RegConsComplaint_OBServiceStub stub = new RegConsComplaint_OBServiceStub();
      // Add your own code here.
    catch(Exception ex)
      ex.printStackTrace();
  public String endpoint = "http://XXXXXX:8000/sap/xi/...../RegConsComplaint_OB";
  private OracleSOAPHTTPConnection m_httpConnection = null;
  private SOAPMappingRegistry m_smr = null;
  public Vector RegConsComplaint_OB(Element requestElem) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    requestBodyEntries.addElement(requestElem);
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "http://sap.com/xi/WebService/soap1.1", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    return responseBody.getBodyEntries();
}I am wondering whether I will be able to use this stub generated by Jdeveloper since the input type is 'Element' and return type is 'Vector'; while in the Jdeveloper documentation the supported "primitive XML Schema types and arrays of primitive XML Schema types as parameters and return values for web services" do not include either of the two.
Regards,
Sujoy

Hi Sujoy
I have been having big problems consuming microsoft sharepoint webservices using jDeveloper 9i.
Problems with jdk version compatability with jDev and NTLM authentication (Sharepoint).
so switching to db connection using utl_http.
Can you pls send me the code set for reference at [email protected]
thanks.
Regards
Sachin

Similar Messages

  • JK Adobe TV - Top 5 Tips for Working with Vectors in CC

    Julieanne Kost has just blogged about her  Adobe TV video on working with shapes and paths in Photoshop CC.  It's actually not that new to Adobe TV, and has already had a lot of views, but we get a lot of questions here on the subject with CC, and there are some nice little tips in it.  I certainly learned a couple of things. :-)
    http://blogs.adobe.com/jkost/2014/01/top-5-tips-for-working-with-vectors-in-photoshop-cc.h tml
    http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/top-5-tips-for-working- with-vectors-in-photoshop-cc/

    My apologies, but I really had no interest in a member's "answer", especially one that is so unhelpful.  Assuming that you were responding to me (we are the only two commenter's at this point), I would not be inclined to read the Creative Cloud offers since this is something that I am not interested in.  I bought the product the first day of offer, I did not rent it....just like I have in all the years past.

  • Restriction of GR & IR for PO with specific document type

    Hi,
    How we can restrict doing Goods Receipt & Invoice Receipt for a Purchase order, instead they do the payment directly for the Purchase order item in FI. We need to restrict GR & IR for PO with particular document type.
    Regards,
    Srinivas

    Hi,
    Yes i do feel the same. Normally if a PO is created means system expects a GR and and IR .If you do not expect the ir means it is a free entry.
    But however you can control the GR / IR through account assignment .please check the account assignment definition at SPROMMPUR-Account assignment-AAcategory.
    Once the PO is created with account assignment the procurement is for consumption  (non stock)
    if it is a stocked procurement system will check the GR/IR indicator in the PO.
    When a PO is created in MM module and the cycle is not completed , it will always show as open PO.I think the context for FI direct posting will be differrant.
    Regards,

  • For STO with Doc. Type UB, shipping instruction not picking automatically..

    Dear All,
    For STO with Doc. Type UB, shipping instruction not picking automatically.. Please advise.
    Regards

    Hi
    Please verify in the config the below is populated already....
    SPRO -> Material Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> define Shipping Data for Plants
    Open the Recieving & Shipping plant ID's and maintain their own shipping data and save.
    Maintain: Sales Org:
    Distr Channel:
    Div:
    Aside: your shipping plant is already configured with Sh.Point - Tcode: OVL2
    Regards
    RG

  • Same functions with different return types in C++

    Normally the following two functions would be considered the same:
    int getdata ( char *s, int i )
    long getdata ( char *s, int i )
    Every other compiler we use would resolve both of these to the same function. In fact, it is not valid C++ code otherwise.
    We include some 3rd party source in our build which sometimes messes with our typedefs causing this to happen. We have accounted for all of the function input types but never had a problem with the return types. I just installed Sun ONE Studio 8, Compiler Collection and it is generating two symbols in our libraries every time this occurs.
    Is there a compiler flag I can use to stop it from doing this? I've got over 100 unresolved symbols and I'd rather not go and fix all of them if there is an easier way.

    Normally the following two functions would be
    considered the same:
    int getdata ( char *s, int i )
    long getdata ( char *s, int i )Not at all. Types int and long are different types, even if they are implemented the same way.
    Reference: C++ Standard, section 3.9.1 paragraph 10.
    For example, you can define two functions
    void foo(int);
    void foo(long);
    and they are distinct functions. The function that gets called depends on function overload resolution at the point of the call.
    Overloaded functions must differ in the number or the type of at least one parameter. They cannot differ only in the return type. A program that declares or defines two functions that differ only in their return types is invalid and has undefined behavior. Reference: C++ Standard section 13.1, paragraph 2.
    The usual way to implement overloaded functions is to encode the scope and the parameter types, and maybe the return type, and attach the encoding to the function name. This technique is known as "name mangling". The compiler generates the same mangled name for the declaration and definition of a given function, and different mangled names for different functions. The linker matches up the mangled names, and can tell you when no definition matches a reference.
    Some compilers choose not to include the return type in the mangled name of a function. In that case, the declaration
    int foo(char*);
    will match the definition
    long foo(char*) { ... }
    But it will also match the definitions
    myClass foo(char*) { ... }
    double foo(char*) { ... }
    You are unlikely to get good results from such a mismatch. For that reason, and because a pointer-to-function must encode the function return type, Sun C++ always encodes the function return type in the mangled name. (That is, we simplify things by not using different encodings for the same function type.)
    If you built your code for a 64-bit platform, it would presumably link using your other compilers, but would fail in mysterious ways at run time. With the Sun compiler, you can't get into that mess.
    To make your program valid, you will have to ensure your function declarations match their definitions.

  • Native method with String return type

    Hi
    i am implementing a Native method with String Return type.
    i am able call the respective C++ method and my C++ method is printing the String (jstring in c++ code ) correctly
    i but i am getting nullpointerexcepti while loading the string in to my Java String .
    i am sure my java code calling the C++ code beacause my C++ code is printing the value and one more wonder is after the NPE my c++ code able to print the value
    the code follows
    HelloWorld.java
    public class HelloWorld {
         private native String print();
         static {
             System.loadLibrary("HelloWorld");
         public static void main(String[] args) throws InterruptedException,NullPointerException{
              HelloWorld hW= new HelloWorld();
              for(int i=0;;i++){
                   String str= new HelloWorld().print();
                   System.out.println(str);
                   Thread.sleep(10000);
    }and HelloWorld.cpp
    // HelloWorld.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    #include "jni.h"
    #include <stdio.h>
    #include "HelloWorld.h"
    #include <windows.h>
    #include "tchar.h"
    #include "string.h"
    #ifdef _MANAGED
    #pragma managed(push, off)
    #endif
    CHAR cpuusage(void);
    typedef BOOL ( __stdcall * pfnGetSystemTimes)( LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime );
    static pfnGetSystemTimes s_pfnGetSystemTimes = NULL;
    static HMODULE s_hKernel = NULL;
    void GetSystemTimesAddress()
         if( s_hKernel == NULL )
              s_hKernel = LoadLibrary(_T("Kernel32.dll"));
              if( s_hKernel != NULL )
                   s_pfnGetSystemTimes = (pfnGetSystemTimes)GetProcAddress( s_hKernel, "GetSystemTimes" );
                   if( s_pfnGetSystemTimes == NULL )
                        FreeLibrary( s_hKernel ); s_hKernel = NULL;
    // cpuusage(void)
    // ==============
    // Return a CHAR value in the range 0 - 100 representing actual CPU usage in percent.
    CHAR cpuusage()
         FILETIME               ft_sys_idle;
         FILETIME               ft_sys_kernel;
         FILETIME               ft_sys_user;
         ULARGE_INTEGER         ul_sys_idle;
         ULARGE_INTEGER         ul_sys_kernel;
         ULARGE_INTEGER         ul_sys_user;
         static ULARGE_INTEGER      ul_sys_idle_old;
         static ULARGE_INTEGER  ul_sys_kernel_old;
         static ULARGE_INTEGER  ul_sys_user_old;
         CHAR  usage = 0;
         // we cannot directly use GetSystemTimes on C language
         /* add this line :: pfnGetSystemTimes */
         s_pfnGetSystemTimes(&ft_sys_idle,    /* System idle time */
              &ft_sys_kernel,  /* system kernel time */
              &ft_sys_user);   /* System user time */
         CopyMemory(&ul_sys_idle  , &ft_sys_idle  , sizeof(FILETIME)); // Could been optimized away...
         CopyMemory(&ul_sys_kernel, &ft_sys_kernel, sizeof(FILETIME)); // Could been optimized away...
         CopyMemory(&ul_sys_user  , &ft_sys_user  , sizeof(FILETIME)); // Could been optimized away...
         usage  =
              (ul_sys_kernel.QuadPart - ul_sys_kernel_old.QuadPart)+
              (ul_sys_user.QuadPart   - ul_sys_user_old.QuadPart)
              (ul_sys_idle.QuadPart-ul_sys_idle_old.QuadPart)
              (100)
              (ul_sys_kernel.QuadPart - ul_sys_kernel_old.QuadPart)+
              (ul_sys_user.QuadPart   - ul_sys_user_old.QuadPart)
         ul_sys_idle_old.QuadPart   = ul_sys_idle.QuadPart;
         ul_sys_user_old.QuadPart   = ul_sys_user.QuadPart;
         ul_sys_kernel_old.QuadPart = ul_sys_kernel.QuadPart;
         return usage;
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
        return TRUE;
    #ifdef _MANAGED
    #pragma managed(pop)
    #endif
    JNIEXPORT jstring JNICALL
    Java_HelloWorld_print(JNIEnv *env, jobject obj)
           int n;
         GetSystemTimesAddress();
         jstring s=(jstring)cpuusage();
         printf("CPU Usage from C++: %3d%%\r",s);
         return s;
    }actually in the above code below part does that all, in the below code the printf statement printing correctly
    JNIEXPORT jstring JNICALL
    Java_HelloWorld_print(JNIEnv *env, jobject obj)
           int n;
         GetSystemTimesAddress();
         jstring s=(jstring)cpuusage();
         printf("CPU Usage from C++: %3d%%\r",s);
         return s;
    }and the NPE i get is
    Exception in thread "main" java.lang.NullPointerException
         at HelloWorld.print(Native Method)
         at HelloWorld.main(HelloWorld.java:10)
    CPU Usage from C++:   6%any solution?
    Thanks
    R
    Edited by: LoveOpensource on Apr 28, 2008 12:38 AM

    See the function you wrote:
    JNIEXPORT jstring JNICALL Java_HelloWorld_print(JNIEnv *env, jobject obj)
           int n;
         GetSystemTimesAddress();
         _jstring s=(jstring)cpuusage();_
         printf("CPU Usage from C++: %3d%%\r",s);
         return s;
    }Here you try to cast from char to jstring, this is your problem, jstring Object should be created:
    char str[20];
    sprintf(str, "%3d", (int)cpuusage());
    printf("CPU Usage from C++: %s%%\r",str);
    jstring s=env->NewStringUTF(str);
    return s;

  • Problem while Generating client code for webservice

    hi,
    my environnement is weblogic 8.1, and i folow the tutorial to generate stub and client code for invoking a webservice hosted by another weblogicserver, here is a portion of the wsdl file :
    <wsdl:definitions targetNamespace=" .......
    xmlns:tns2="http://exception.toto.fr"......>
    <wsdl:types>
    <schema targetNamespace="http://exception.toto.fr" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    - <complexType name="ChainedException">
    - <sequence>
    <element name="cause" nillable="true" type="xsd:anyType" />
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message ....../>after that, as desribed in the weblogic doc, i create a build.xml, and run the ant command (wich call the clientgen weblo ant task, i end up with the following error :
    [clientgen] weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['http://exception.toto.fr']:tns2:ChainedException perhaps due to the lack of an import statement for namespace http://exception.toto.fr
    [clientgen] at weblogic.xml.schema.model.XSDSchema.getSchemaForName(XSDSchema.java:1062)
    [clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTopLevelObjectImpl(XSDSchema.java:893)
    [clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTypeImpl(XSDSchema.java:881)
    [clientgen] at weblogic.xml.schema.model.XSDSchema.lookupType(XSDSchema.java:872)
    [clientgen] at weblogic.xml.schema.model.XSDObject.lookupType(XSDObject.java:324)
    [clientgen] at weblogic.xml.schema.model.XSDAnyType.getBaseTypeObject(XSDAnyType.java:56)
    [clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.realBaseType(SchemaInspe
    .....thanks a lot for your help

    I am facing the same problem.Did any one able to find the solution

  • WL-7 / clientgen task do not generate correct bean for non built-in data type

    The clientgen Ant task do not generate a correct JavaBean for this
    complexeType definition (returned by a web service method):
    extract from WSDL:
    <s:complexType name="MyBoggusType">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded"
    name="shouldBeAnArray" type="s0:OtherType " />
    </s:sequence>
    <s:attribute name="total" type="s:int" />
    </s:complexType>
    The generated JavaBean contains an int (for 'total') and a simple
    reference to an OtherType instance (for 'shouldBeAnArray').
    The 'shouldBeAnArray' attribute should be an array of OtherType?
    What's wrong?
    (The service is not implemented by me and I have few control on it)
    Is it a bug or a limitation?
    Should I write a Codec as a workaround?

    On Wed, 05 Feb 2003 17:28:40 +0100, Stephane Boisson wrote:
    Is it a bug or a limitation?
    Should I write a Codec as a workaround?This is a bug. It has been fixed in service pack 2. Refer to CR082308
    when contacting support if you need a patch against sp1. You could indeed
    write your own codec but it might be easier to just use the patch :)
    --Scott

  • BDC for MM with different material types.

    Hi, Can anyone explain me how the MM01 tcode can be handled in BDC, when material with different material types are present in the flat file. Different material types have different views and hence different recordings....How to handle this scenario?

    Based on different types of material, you can able to find out which all views are required to call through BDC. Try to find out views by using tables MARA, MAKT, MARD, MARC etc. Once it is confirmed you can call views using screen numbers.
    Here I don't think so more than one recording is required. Record MM01 transaction using Basic Data1, once you go inside the transaction select all the views required to complete the MM01 transaction. It will record all the views (hence screen numbers), then you can switch/call views based on screen numbers.
    Hope this helps you to resolve your query.

  • EJB3 Creating Web Services with Complex Return Types

    Hi
    Not sure if this is the right place, but hoping someone can help!
    I have an entity bean that has a collection (list<Address>) of sub-entities. I have then created a session bean to retrieve the Business and populate it's children.
    I then expose this as a web service and although it works and I get appropriate XML out, the WSDL of the deployed service is not as I would like.
    For example:
    The return type is
    <complextype name="Business">
    <sequence>
    <element name="id" type="int"/>
    <element name="addresses" type="ns1:list"/>
    </sequence>
    </complextype>
    <complextype name="Address">
    <sequence>
    <element name="id" type="int"/>
    <element name="addresses1" type="string"/>
    <element name="addresses2" type="string"/>
    <element name="addresses3" type="string"/>
    </sequence>
    </complextype>
    ns1:list is included as a separate schema as a complex extension of the base "collection"
    So, even though the Address type is there it is not referenced from Business.
    So, when I'm calling the Web Service from BPEL or ESB, I have not got the ability to map adequately back from the response.
    I have tried a whole bunch of ways of getting this to work, but so far to no avail...
    Has anyone seen this before, or can I somehow override the mapping from the Entity to the WSDL?
    Any help would be most appreciated.
    Thanks
    Chris

    Thanks. We are using a Java Proxy to consume the web service as we need to use JAX-WS handlers. We created data control from the service stub that was created by the proxy. Our issue is with the response XML which comes as a complex type. Also, the data control is understanding the complex type and is creating the structure right. The problem is when we drag that control on a JSF page. No data is displayed. We think that we are not traversing the complex object properly which is creating the issue.
    I understand that you answer related to the input is applicable to output as well. We can change the structure by flattening it but we thought that in 11G there is some new features where we can use the complex types out of the box without any change. Is that true? Also, any luck in finding the documents (broken links) on your blog page?

  • WebService Action Block Return Type

    Hi ,
       I would like to know on xMII 11.5 RC2 if the Webservice can only return
       it's XML data in a standard Iluminator Row Set structure or is there a way
       that one can get the return XML in a cutom format i.e.
        <ROOT>
              <MYDATA>blah blah</MYDATA>
        <ROOT>
    Regards

    On xMII XML format via the WebService (WSDLGen) mechanism, but you can return any xMII XML format via the Runner mechanism.
    URL is something like: /Lighthammer/Runner?Transaction=YourTransaction&OutputParameter=DesiredXMLOutputParameter
    There are more complex techniques that can be used to have xMII emulate any webservice with any inputs and outputs, but those involve creation of custom WSDL files and are probably a bit lengthy for an SDN post.
    - Rick
    Message was edited by:
            Rick Bullotta

  • Problems with document return type

    Hi, i've deployed a web service in weblogic 6.1 that returns a xml document. When
    i try to execute the client, i receive this error message:
    ------------- RECEIVING XML -------------
    <?xml version="1.0"?>
    <definitions
    targetNamespace="java:examples.webservices.rpcXML.pruebaXML"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="java:examples.webservices.rpcXML.pruebaXML"
    xmlns:dom="http://www.w3c.org/1999/DOM"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema targetNamespace='java:examples.webservices.rpcXML.pruebaXML'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    </schema>
    </types>
    <message name="getXMLRequest">
    </message>
    <message name="getXMLResponse">
    <part name="return" type="dom:org.w3c.dom.Document" />
    </message>
    <portType name="PruebaXMLPortType">
    <operation name="getXML">
    <input message="tns:getXMLRequest"/>
    <output message="tns:getXMLResponse"/>
    </operation>
    </portType>
    <binding name="PruebaXMLBinding" type="tns:PruebaXMLPortType"><soap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http/"/>
    <operation name="getXML">
    <soap:operation soapAction="urn:getXML"/>
    <input><soap:body use="encoded" namespace='urn:PruebaXML' encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace='urn:PruebaXML' encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/"/></output>
    </operation>
    </binding>
    <service name="PruebaXML"><documentation>todo</documentation><port name="PruebaXMLPort"
    binding="tns:PruebaXMLBinding"><soap:address location="http://localhost:7001/pruebaXML/pruebaXMLuri"/></port></service></definitions>
    ===================================================================================
    ERROR =================================================================
    javax.naming.NamingException: i/o failed java.io.IOException: http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/:http://www.w3c.org/1999/DOM:org.w3c.dom.Document:No
    codec for decoding http://xml.apache.org/xml-soap/literalxml: [ CodecFactory:
    http://schemas.xmlsoap.org/soap/encoding/=null, =null]. Root exception is java.io.IOException:
    http://xml.apache.org/xml-soap/literalxml http://schemas.xmlsoap.org/soap/encoding/:http://www.w3c.org/1999/DOM:org.w3c.dom.Document:No
    codec for decoding http://xml.apache.org/xml-soap/literalxml: [ CodecFactory:
    http://schemas.xmlsoap.org/soap/encoding/=null, =null]
         at weblogic.soap.wsdl.binding.Part.typeToClass(Part.java:74)
         at weblogic.soap.wsdl.binding.Part.toSoapType(Part.java:51)
         at weblogic.soap.wsdl.binding.Message.getReturnType(Message.java:58)
         at weblogic.soap.wsdl.binding.BindingOperation.populate(BindingOperation.java:52)
         at weblogic.soap.wsdl.binding.Binding.populate(Binding.java:48)
         at weblogic.soap.wsdl.binding.Definition.populate(Definition.java:116)
         at weblogic.soap.WebServiceProxy.getServiceAt(WebServiceProxy.java:176)
         at weblogic.soap.http.SoapContext.lookup(SoapContext.java:76)
         at javax.naming.InitialContext.lookup(InitialContext.java:350)
         at examples.webservices.rpcXML.javaClient.Client.main(Client.java:40)
    Exception in thread "main"
    This is the wsdl file that weblogic generates:
    <?xml version="1.0" ?>
    - <definitions targetNamespace="java:examples.webservices.rpcXML.pruebaXML" xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="java:examples.webservices.rpcXML.pruebaXML" xmlns:dom="http://www.w3c.org/1999/DOM"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    - <types>
    <schema targetNamespace="java:examples.webservices.rpcXML.pruebaXML" xmlns="http://www.w3.org/1999/XMLSchema"
    />
    </types>
    <message name="getXMLRequest" />
    - <message name="getXMLResponse">
    <part name="return" type="dom:org.w3c.dom.Document" />
    </message>
    - <portType name="PruebaXMLPortType">
    - <operation name="getXML">
    <input message="tns:getXMLRequest" />
    <output message="tns:getXMLResponse" />
    </operation>
    </portType>
    - <binding name="PruebaXMLBinding" type="tns:PruebaXMLPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http/"
    />
    - <operation name="getXML">
    <soap:operation soapAction="urn:getXML" />
    - <input>
    <soap:body use="encoded" namespace="urn:PruebaXML" encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output>
    <soap:body use="encoded" namespace="urn:PruebaXML" encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    </binding>
    - <service name="PruebaXML">
    <documentation>todo</documentation>
    - <port name="PruebaXMLPort" binding="tns:PruebaXMLBinding">
    <soap:address location="http://carlos-3-116:7001/pruebaXML/pruebaXMLuri" />
    </port>
    </service>
    </definitions>
    Could anyone help me, thanks

    Here is a the actual php class:
    class question{
    function getQuestionDetails()
    $r = array("r"=>"s","t"=>11230,"wr"=>500);
    return $r;
    This class has a defined return VO(questionDetails) in flex. It is recognized in the IDE, but when I run the app, I always get a "null object reference" error. I can't seem to convert the result to questionDetails, and I can't access the fields as properties or part of an array of the return object as an instance of "Object".
    Any ideas?
    Thanks!

  • Flex services with multiple return types

    Hello,
    We are creating a webapplication with flex and php.
    Everything is working very good, until we got to the library part of the application.
    Every service so far had only 1 return type (eg: User, Group, ...)
    Now for the library we want to return a ArrayCollection of different types of objects. To be more specific the LibraryService should return a ArrayCollection containing Folder and File objects.
    But how to configure this in Flex (Flash Builder 4 (standard))?
    So far it converts every object to the type Object, i would really like it to be Folder or File
    The only solution we can think of right now is to create a new object Library that will contain 2 ArrayCollections, one of type Folder and one of type File. This could work ofcourse, but I wonder if there is a better solution for this OR that i can configure multiple return types for a service.
    Any ideas/advice is greatly appreciated.

    Normally if you are using Blazeds(Java stuff, i'm sure there should be something similar for php), you can map java objects to that of the AS objects, when you get the data back you are actually seeing the object which is a Folder or a File object rather than just a Object.

  • Purchase Order is generated after MRP for Material with MRP Type ND

    Hi Everyone,
    Material type := HAWA
    My material procurement type = F i.e. External Procurement.
    MRP Type = ND in Production server , and VB in Quality
    Lot Size = EX
    Material Status :- 15 Pre-release both for Quality and production server
    The Material is bulk material and bulk material indicator is set.
    Purchasing View is also maintained for the same.
    Planning Strat = Z5 Company specific
    Special procurement key:- Z7 Company specific
    I am running MD02 with following parameters.
    Create Pur Req =1, PR
    Create MRP List = 1, MRP List
    Delivery Schedule = 3, Schedule Lines
    Planning Mode = 2 Re- Explode BOM & Routing
    Scheduling = 1
    Issue:
    After MRP run, system is  generating PR, Though with MRP type ND purchase requisition should not be generated.
    Observation:- Looks like there is inconsistency of material date in Quality and production server.
    When I tried to run the planning , The Error message was generated"Material status is set to pre- release.
    After changing the material status to 20 (Active ) , when we run the MRP , The error message is generated "Material is not planned automatically "
    We havent been able to locate the root cause so far
    Please guide us
    Thanks in Advance,
    Ayaz
    Edited by: Ayaz Alam Khan on Feb 16, 2011 2:41 PM

    IF the material is ND, system won't Run MRP for the material
    Observation:- Looks like there is inconsistency of material date in Quality and production server.
    There is no link
    When I tried to run the planning , The Error message was generated"Material status is set to pre- release.After changing the material status to 20 (Active ) , when we run the MRP , The error message is generated "Material is not planned automatically "
    system will read the X plant  material status or plant specific material status first and then only system will read MRP type

  • Using CreateObject for Webservice with username and password

    When using createObject() to call a web service how do I pass
    in the user name and password required by the service?
    If I do a cfdump on the webservice object I see it has
    setUserName() and setPassword() methods but they don't seem to be
    working.
    I also see there are properties named "USERNAME_PROPERTY" and
    "PASSWORD_PROPERTY" but I can't seem to modify them in code. I
    suppose they are protected.
    example:
    ws = createObject("webservice", "
    http://url.to/wsdl.xml",
    "serviceport");
    ws.setUserName("myawesomeusername");
    ws.setPassword("myawesomepassword");
    myReturn = ws.serviceMethodCall("bla");

    quote:
    Originally posted by:
    MACRStockHolder
    For anyone that encounters the same issue/question;
    apparently you can't apply a username/password to the object call
    like you can when using <cfinvoke> to make a web service
    call.
    FYI Adobe: this is VERY limiting, I have to use a web service
    that uses in/out parameters which to the best of my knowledge
    requires the use of createObject() but at the same time the web
    service requires a username and password which I can only do with
    <cfinvoke>. Looks like I will be writing a compiled custom
    tag just for a workaround.
    According to the docs you can provide a username and password
    by passing a struct containing these items to CreateObject
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_18.html#45 14398
    If you like cfinvoke use it. You can get return values by
    using the returnVariable argument. I would assume mutliple output
    parameters would be returned in a struct.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_i_10.html#4001127

Maybe you are looking for

  • Add filename and path to Designer form footer.

    I am somewhat of a novice at creating forms in Livecycle designer and need help adding a filename and path to the footer of a form after clicking on the "save as' button.  I have not found any answers anyplace so help would be greatly appreciated ASA

  • MacBook pro 15 late 2011 video issue

    When will Apple recognize the problem with the video on the MacBook Pro late 2011? I have found in many forums and newsletters people who have the same problem? 800 euros to repair a MacBook, which is not even 3 years old, has cost more than 2,500 eu

  • Since i have installed OS Lion, my second screen has just gone grey. Why is this?

    I can still see my mouse on it and right click for options; but there is no background and i cannot see any windows/apps.  When using Snow Leopard i didn's have this issue, it is recent, since installing Lion. I have checked the monitor, it works as

  • Some sites cannot be accessed after Mountain Lion

    Since I have downloaded Mountain Lion I cannot access the sites of my employer anymore (www.superiorenergy.com) Also I cannot access our portal for the intranet and not receive my email via Outlook and webmail. It seems that always when "superiorener

  • Count function in assignments of MDM

    I have a large text field of 1200 chars,i need to put some assignment where it separates each 132 chars with a separator(say #) How can i do this ?Any help