Web services with multiple elements in the results

We are using ASP.Net and LiveCycle Forms with LiveCycle Designer 7.0. LiveCycle forms is running on JBOSS (turnkey installation). Our problem is that if the web service returns multiple results e.g.
      £12.99
      Widget
      £0.99
      Grommett
The form does not grow to accommodate the extra results. Has anyone had any experience of this issue. Adobe say it can be done but so far we have had no luck.

<[email protected]> ha scritto nel messaggio <br />news:[email protected]..<br />> We are using ASP.Net and LiveCycle Forms with LiveCycle Designer 7.0. <br />> LiveCycle forms is running on JBOSS (turnkey installation). Our problem is <br />> that if the web service returns multiple results e.g.<br />> <products><br />>   <product><br />>      <price>£12.99</price><br />>      <description>Widget</description><br />>   </product><br />>   <product><br />>      <price>£0.99</price><br />>      <description>Grommett</description><br />>   </product><br />> </products><br />> The form does not grow to accommodate the extra results. Has anyone had <br />> any experience of this issue. Adobe say it can be done but so far we have <br />> had no luck.<br /><br />You have to create a subform that has flow content, then flag "repeat the <br />subform for each data item" (or something similar, I've not Designer <br />installed on this machine). Remember to save as dynamic PDF.<br /><br />Bye,<br />Alessio

Similar Messages

  • Web service with multiple out parameters

    Hi Developers,
    I have been playing around with som web services in the developer studio.
    I can create a webservice from a normal ejb.
    But i can only get one out parameter, which is the return parameter of the ejb.
    I tried to make an object to use as return parameter, but then i couldn't use the method for the web service.
    Can anyone tell me how to make a web service with multiple out parameters?
    Br Rasmus

    Hi Developers,
    I have the same question, is it possible to have multiple outgoing parameters?
    When not, does SAP Netweaver knows a IN-OUT parameter? Because I found on the internet that it is possible to have a IN-OUT parameter. But that was with the BEA Weblogic 8.x.
    When not, is then the only solution to return a object? With in this object all the parameters you want.
    Or otherwise is there a other workaround?
    Thanks in advance,
    Marinus Geuze

  • Calling web service with utl_dbws and parsing the xml result with Xpath

    I'm invoking a web service from the database(10.2.0.2.0) using sys.utl_dbws and all is working well. After executing response := sys.utl_dbws.invoke(call_, request); I execute dbms_output.put_line(substr(response.getstringval(),1,1500)); which results with:
    <refCursor10gProcessResponse xmlns="http://xmlns.oracle.com/refCursor10g">
    <result xmlns="http://xmlns.oracle.com/refCursor10g">
    <Row xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/ADM/SERVICES/GETST/">
    <Column name="C_ID" sqltype="VARCHAR2">20292</Column>
    <Column name="AYR" sqltype="VARCHAR2">2002</Column>
    <Column name="EDT" sqltype="VARCHAR2">2002-06-13</Column>
    <Column name="ETUS" sqltype="VARCHAR2">O</Column>
    <Column name="PC" sqltype="NUMBER">537</Column>
    <Column name="SG" sqltype="VARCHAR2"/>
    <Column name="VD" sqltype="VARCHAR2">Y</Column>
    <Column name="VR" sqltype="VARCHAR2">R</Column>
    <Column name="TS" sqltype="VARCHAR2">31</Column>
    <Column name="D" sqltype="VARCHAR2">I</Column>
    <Column name="T" sqltype="VARCHAR2">1</Column>
    <Column name="P" sqltype="VARCHAR2"/>
    <Column name="MT" sqltype="VARCHAR2">2</Column>
    <Column name="PTAT" sqltype="VARCHAR2"/>
    </Row>
    </result>
    </refCursor10gProcessResponse>
    How do I parse out just the value 20292 of Column name="C_ID" using xpath? I've tired but I don't think i have the xpath set up correctly:
    dbms_output.put_line(response.extract('//result/Row/Column/child::text)','xmlns="http://xmlns.oracle.com/refCursor10g"').getstringval());
    Error messgae is:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "ADM.CONSUME_WEB_SERVICES", line 439
    ORA-06512: at 3
    Thanks

    Tried getting by the attribute but I don't think I have the format correct:
    dbms_output.put_line(response.extract('//result/Row/Column@C_ID/child::text()','xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/ADM/SERVICES/GETST"').getstringval());
    Here's the full soap response envelope:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <refCursor10gProcessResponse xmlns="http://xmlns.oracle.com/refCursor10g">
    <result xmlns="http://xmlns.oracle.com/refCursor10g">
    <Row xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/ADM/SERVICES/GETST/">
    <Column name="C_ID" sqltype="VARCHAR2">20292</Column>
    <Column name="AYR" sqltype="VARCHAR2">2002</Column>
    <Column name="EDT" sqltype="VARCHAR2">2002-06-13</Column>
    <Column name="ETUS" sqltype="VARCHAR2">O</Column>
    <Column name="PC" sqltype="NUMBER">537</Column>
    <Column name="SG" sqltype="VARCHAR2"/>
    <Column name="VD" sqltype="VARCHAR2">Y</Column>
    <Column name="VR" sqltype="VARCHAR2">R</Column>
    <Column name="TS" sqltype="VARCHAR2">31</Column>
    <Column name="D" sqltype="VARCHAR2">I</Column>
    <Column name="T" sqltype="VARCHAR2">1</Column>
    <Column name="P" sqltype="VARCHAR2"/>
    <Column name="MT" sqltype="VARCHAR2">2</Column>
    <Column name="PTAT" sqltype="VARCHAR2"/>
    </Row>
    </result>
    </refCursor10gProcessResponse>
    </env:Body>
    </env:Envelope>
    Any thoughts?

  • ADF page calling Web Service with multiple params the right way

    Hello,
    I am using JDev 11.1.1.4.0.
    I have an email notification web service that takes 4 parameters, from, to, subject and body. What I need to do is at the end of each 'Commit', call this web service to send notification to a group of audiences telling them a new record has been created. Following are steps I took to make it work:
    1. Created a web service data control using the email notification WSDL.
    2. Drag-and-Drop the data control on jspx page as ADF Parameter form.
    3. Set Panel Form Layout's Visible property to 'False' so the controls doesn't show.
    4. In a backingbean where method 'onSave()' is, I put the code to call the web service.
    // in onSave() method after successful commit
          ValueExpression veFrom =
              efactory.createValueExpression(elctx, "#{bindings.from.inputValue}", Object.class);
          veFrom.setValue(elctx, "[email protected]");
          ValueExpression veTo =
              efactory.createValueExpression(elctx, "#{bindings.to.inputValue}", Object.class);
          veTo.setValue(elctx, "[email protected]");
    // omitted rest of the params for brevity
          OperationBinding method = bindings.getOperationBinding("process");
          method.execute();This code works, but I am not sure if I am doing it right. For some reason, there is a better way of achieving what I need.
    Many thanks in advance for your candid comments and suggestions.
    Bones Jones
    Edited by: Bones Jones on Apr 29, 2011 6:44 AM

    Hi,
    As you have dropped a method in the JSPX page as a parameter form, it adds unnecessary UI components, that you will NOT be using.
    Instead of making the panelFormLayout visible property to false, delete it from the UI page.
    Thus, you would have only the required method binding and the parameters defined as attribute values in the pageDef - which is as expected.
    While deleting the panelFormLayout, delete it manually from the page source and doNOT delete thru the structure pane as it would delete the bindings as well.
    Thanks,
    Navaneeth

  • Web Services with table element dont work

    I, am trying to use a web service that returns a xml with code and description.
    When i test the web service it works fine but when i use it in a page doesnt work at all.
    There is no parameters to call and the response is:
    <?xml version="1.0" encoding="utf-8" ?>
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <soap:Body>
    - <instituicaoResponse xmlns="http://tempuri.org/">
    - <instituicaoResult>
    - <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="pt-PT">
    - <xs:complexType>
    - <xs:choice maxOccurs="unbounded">
    - <xs:element name="Table">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="INST" type="xs:decimal" minOccurs="0" />
    <xs:element name="DESCRICAO" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    - <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    - <NewDataSet xmlns="">
    - <Table diffgr:id="Table1" msdata:rowOrder="0">
    <INST>0</INST>
    <DESCRICAO>Beneficiários - SAMS Norte</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table2" msdata:rowOrder="1">
    <INST>1</INST>
    <DESCRICAO>Utentes - SAMS Norte (ex.Benef)</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table3" msdata:rowOrder="2">
    <INST>2</INST>
    <DESCRICAO>Beneficiários - SAMS Sul e Ilhas</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table4" msdata:rowOrder="3">
    <INST>3</INST>
    <DESCRICAO>Beneficiários - SAMS Centro</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table5" msdata:rowOrder="4">
    <INST>4</INST>
    <DESCRICAO>Beneficiários - PALOP's (excl. Benef. BCA)</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table6" msdata:rowOrder="5">
    <INST>6</INST>
    <DESCRICAO>Utentes - SAMS Sul e Ilhas</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table7" msdata:rowOrder="6">
    <INST>7</INST>
    <DESCRICAO>Funcionários do SBN/SAMS</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table8" msdata:rowOrder="7">
    <INST>10</INST>
    <DESCRICAO>Utentes - Banco Comercial Angolano</DESCRICAO>
    </Table>
    - <Table diffgr:id="Table9" msdata:rowOrder="8">
    <INST>15</INST>
    <DESCRICAO>Utentes - SAMS Centro</DESCRICAO>
    </Table>
    </NewDataSet>
    </diffgr:diffgram>
    </instituicaoResult>
    </instituicaoResponse>
    </soap:Body>
    </soap:Envelope>
    Can anyoone tell me waht is the problem, thanks

    As far as I can tell the problem is the null namespace attribute on the NewDataSet element:
    <NewDataSet xmlns="">As I understand it, either a namespace value should be given, or the xmlns attribute should not appear at all. If it's removed from the source XML then the data can be extracted:
    SQL> l
      1  with webservice as (
      2    select  xmltype(q'{
      3  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      4  <soap:Body>
      5  <instituicaoResponse xmlns="http://tempuri.org/">
      6  <instituicaoResult>
      7  <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
      8  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="pt-PT">
      9  <xs:complexType>
    10  <xs:choice maxOccurs="unbounded">
    11  <xs:element name="Table">
    12  <xs:complexType>
    13  <xs:sequence>
    14  <xs:element name="INST" type="xs:decimal" minOccurs="0" />
    15  <xs:element name="DESCRICAO" type="xs:string" minOccurs="0" />
    16  </xs:sequence>
    17  </xs:complexType>
    18  </xs:element>
    19  </xs:choice>
    20  </xs:complexType>
    21  </xs:element>
    22  </xs:schema>
    23   <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    24   <NewDataSet xmlns="">
    25   <Table diffgr:id="Table1" msdata:rowOrder="0">
    26  <INST>0</INST>
    27  <DESCRICAO>Beneficiários - SAMS Norte</DESCRICAO>
    28  </Table>
    29   <Table diffgr:id="Table2" msdata:rowOrder="1">
    30  <INST>1</INST>
    31  <DESCRICAO>Utentes - SAMS Norte (ex.Benef)</DESCRICAO>
    32  </Table>
    33   <Table diffgr:id="Table3" msdata:rowOrder="2">
    34  <INST>2</INST>
    35  <DESCRICAO>Beneficiários - SAMS Sul e Ilhas</DESCRICAO>
    36  </Table>
    37   <Table diffgr:id="Table4" msdata:rowOrder="3">
    38  <INST>3</INST>
    39  <DESCRICAO>Beneficiários - SAMS Centro</DESCRICAO>
    40  </Table>
    41   <Table diffgr:id="Table5" msdata:rowOrder="4">
    42  <INST>4</INST>
    43  <DESCRICAO>Beneficiários - PALOPs (excl. Benef. BCA)</DESCRICAO>
    44  </Table>
    45   <Table diffgr:id="Table6" msdata:rowOrder="5">
    46  <INST>6</INST>
    47  <DESCRICAO>Utentes - SAMS Sul e Ilhas</DESCRICAO>
    48  </Table>
    49   <Table diffgr:id="Table7" msdata:rowOrder="6">
    50  <INST>7</INST>
    51  <DESCRICAO>Funcionários do SBN/SAMS</DESCRICAO>
    52  </Table>
    53   <Table diffgr:id="Table8" msdata:rowOrder="7">
    54  <INST>10</INST>
    55  <DESCRICAO>Utentes - Banco Comercial Angolano</DESCRICAO>
    56  </Table>
    57   <Table diffgr:id="Table9" msdata:rowOrder="8">
    58  <INST>15</INST>
    59  <DESCRICAO>Utentes - SAMS Centro</DESCRICAO>
    60  </Table>
    61  </NewDataSet>
    62  </diffgr:diffgram>
    63  </instituicaoResult>
    64  </instituicaoResponse>
    65  </soap:Body>
    66  </soap:Envelope>}') xml
    67    from dual)
    68  select
    69            extractvalue(
    70             value(t)
    71           , '/Table/INST'
    72           , 'xmlns="http://tempuri.org/"') inst
    73          , extractvalue(
    74             value(t)
    75           , '/Table/DESCRICAO'
    76           , 'xmlns="http://tempuri.org/"') descricao
    77  from
    78            webservice ws
    79          , table(
    80           xmlsequence(
    81             extract(
    82                 ws.xml
    83               , '//instituicaoResponse/instituicaoResult/diffgr:diffgram/NewDataSet/*'
    84*               , 'xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns="http://tempuri.org/"'))) t
    SQL> /
    no rows selected
    SQL> l 24
    24*  <NewDataSet xmlns="">
    SQL> c/ xmlns=""//
    24*  <NewDataSet>
    SQL> /
    INST DESCRICAO
    0    Beneficiários - SAMS Norte
    1    Utentes - SAMS Norte (ex.Benef)
    2    Beneficiários - SAMS Sul e Ilhas
    3    Beneficiários - SAMS Centro
    4    Beneficiários - PALOPs (excl. Benef. BCA)
    6    Utentes - SAMS Sul e Ilhas
    7    Funcionários do SBN/SAMS
    10   Utentes - Banco Comercial Angolano
    15   Utentes - SAMS Centro
    9 rows selected.This is not an APEX problem: try the XML DB, but I think the problem lies in the web service XML rather than in Oracle or your XPath expressions...

  • PL SQL Web Service with XML output - Remove the declaration from the proces

    Using JDeveloper to create PL/SQL web services it inserts the generic declaration
    <?xml version="1.0" encoding="UTF-8" ?>. I want to remove this line from the payload.
    Here is the entire payload. Why is this inserted and how do I get rid of it.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.sql.SQLException: java.sql.SQLException: ORA-04068: existing state of packages has been discarded ORA-04063: package body "FDC_API.PVR_IPS_TICKET" has errors ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at line 1</faultstring>
    <faultactor>/pvr_ora-pvr_tickets-context-root/Pvr2ips</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>rvice, my payload has the

    We can generate jaxws from 11.1.2.0 onwards using This is now provided by the TopLink web service provider builder, which can be via the TopLink DBWS provider wizard from JDeveloper since the 11.1.2.0.0 release
    1.4.4 Database Web Services (DBWS)
    http://docs.oracle.com/cd/E23943_01/doc.1111/e26045/general.htm#CHDIEEHG
    Hope that heps
    Regards,
    Sunil P

  • Protecting a REST web service with Policy Agent

    I have deployed a REST web service in Glassfish using Jersey Annotations. A UI in the same Glassfish instance is protected by a policy agent that forces users through a login page. I would like to protect the REST web service with BASIC Authentication using the same policy agent. Is this possible? Is there supporting documentation?

    Hi Daniel,
    When you publish a message through Rest, hope your Restful service will receive/process the posted message?
    So
    YourBizTalk -->(Post Message to)-->RestFulService
    From the error message, "the published message could not be routed because no subscribers were found.", it seems like the this Restful service is a
    wrapper (or service interface) for BizTalk at client end( where message has been posted thru Rest) and actual posted message is “processed” by BizTalk and the error "" is from BizTalk "after" Rest. This message says the message you posted
    through rest is not found subscription at their end.
    So
    YourBizTalk -->(Post Message to)-->RestFulService -->Clients'BizTalk.
    Here problem is at Clients'BizTalk as shown where the posted message to their BizTalk is not processed because no subscription has been found.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Calling web service with basic authentication from EP "unauthorized"

    Hello,
    I need to call a .NET web service with basic authentication on the IIS from my portal application (no http proxy between portal and IIS). But always I get the following exception:
    <b>com.sap.engine. services.webservices.jaxm.soap.accessor. NestedSOAPException:
    Problem in server response: [Unauthorized].</b>
    I'm using the following code for calling the .NET web service:
    <b>...</b><i>Licence_GetList lParameter = new Licence_GetList();
    lParameter.setStatus(CEnvironment.TransformStatus_WebService(search));
    ILicenceManager lLicMan = (ILicenceManager) PortalRuntime.getRuntimeResources().getService("LicenceManager");
    ILicenceManager lLicManSecure = lLicMan.getSecurisedServiceConnection(request.getUser());
    Licence_GetListResponse lGetListResponse = lLicManSecure.Licence_GetList(lParameter);</i><b>...</b>
    I've also configured a http system in the portal system landscape using the following parameters:
    <i>Authentication Method : Basic Authentication
    Authentication Type : Server
    User Mapping Type : admin,user</i>
    The user mapping is also personalized for this system!
    What's wrong? Please help! This is really urgent!
    Kind Regards
    Joerg Loechner

    Hello Renjith,
    here is a small cutout of my "portapp.xml";
    <services>
      <service alias="LicenceManager" name="LicenceManager">
        <service-config>
          <property name="className" value="de.camelotidpro.
                 pct.xi.scm.webservice.LicenceManager"/>
          <property name="startup" value="false"/>
          <property name="WebEnable" value="false"/>
          <property name="WebProxy" value="true"/>
          <property name="SecurityZone" value="de.camelotidpro.
                 pct.xi.scm.webservice.LicenceManager/
                   DefaultSecurity"/>
        </service-config>
        <service-profile>
          <property name="SystemAlias" value="LicMan_NET"/
        </service-profile>
      </service>
    </services>
    I'm using a http system created in the system landscape (alias LicMan_NET). But it seems that this system is not used by the web service call (No error, even if I delete this system!). The code used to call this web service can be found at the top of this threat...
    Regards
    Joerg Loechner

  • Web services with controls

    hi im trying to create a web service with this VI in the atachment, i tested the add example avaible in NI site and works fine, now i want to build a client that access the vout control, but when i launch this adress http://localhost/tzidws/add/5 the browser doenst show the xml code that i was expecting, it just keep saying waiting for localhost, am i doing samething wrong?
    Márcio Ngolo 
    P.S.- Im using full labview 8.6
    Attachments:
    TZIDWrite.vi ‏22 KB
    information.jpg ‏82 KB
    urlmappings.jpg ‏84 KB

    helloYann how are u tanks for answer-me, my intensions is to create a webservive using labview and PHP, i created a vi to control a positioner, the vi (tzidwrite.vi) control the positioner openning or closing the positioner, to do that all i did is give a tension value to the input of the positioner using labview and a SCB-68 aquisition board, the values of tension varies from 0v (totally closed) to 10v(totally open), the vi works fine and all system works fine, what i need now is to transform this vi into a web service, i follow the instructions in the help of labview 8.6 and i was expecting to see the XML web page in order to be able to control my positioner just changing the values of the tension in the vi webservice, but i believe im not doing the url mapping the right way, im sending the project files for verification.
    Attachments:
    TZID.zip ‏230 KB

  • Consuming Domino web service with JAXB encounters Method Response element

    I am able to consume a Domino R7 (Axis) web service with JAX-WS using Dispatch<SOAPMessage>. When I try using Dispatch<Object> however, JAXB throws an exception because it encounters an unexpected tag.
    The XML from the web service looks like this:
    <Envelope>
        <Body>
            <WebServiceMethodResponse>
                <WebServiceMethodReturn>
                    The meaning of life
                </WebServiceMethodReturn>
            </WebServiceMethodResponse>
        </Body>
    </Envelope>With Dispatch<SOAPMessage>, I can get to the meaning of life quickly using SOAPBody.getElementsByTagName( "WebServiceMethodReturn" ) but with Dispatch<Object>, it appears I must also create a class for the WebServiceMethodResponse element to make JAXB happy. I don't see this happening in other people's examples. Has the Return-element-within-Response-element design been eliminated in pure JAX-WS web services, or is this something that only IBM does?

    In case anyone's search leads them here, I've posted the solution at:
    *[http://www.pby.com/general.nsf/webarticles/dominowebservice01]*
    It is an exhaustive article (not "Hello World"!) that goes through several versions of the web service and client - hopefully explaining all+ pieces of the puzzle:
    ~ web service code,
    ~ WSDLs
    ~ schema
    ~ thoroughly-documented clients that do and do not use JAXB
    ~ ... that use generated artifacts
    ~ ... that customize existing POJOs
    ~ the SOAP messages generated in each direction
    ~ the necessary JAXB annotations
    ~ explanations of how the code works
    ~ explanations of how namespaces affect the code
    ~ on and on and on...
    My constant goal was to write an uncomplicated solution that uses as few artifacts (two) and annotations as possible. The end result is a small, fast JAX-WS 2.0 client that uses JAXB to invoke and consume a secured Domino 7 (1.4.2 JVM + AXIS) web service, using RPC/literal SOAP messages.

  • Invoking a web service with the WSDL URL given at run time

    I have created a very Simple Web Service using Netbeans 6.0 as an EJB Module. I have successfully created clients to access the web service, both through a Composite Application and through a simple Java Desktop Application, using the create "New Web Service Client" option, either by pointing to the EJB project either by providing the WSDL URL.
    What I want now, is for the Java Desktop application to be able to consume the service after it has discovered the WSDL URL at runtime (e.g. through UDDI).
    From what I have been able to find on the web, I should use the javax.xml.ws.Service class. But when I attempt to use the getPort method I get the exception:
    "com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class mypackagename.jaxws.MyWebServiceName is not found. Have you run APT to generate them?"
    Since I know that this class is not needed for the Web Service to be accessed, when the two procedures I describe above are used, I wonder what I can do to get this to work.
    I have tried using apt from the command line but it can't find Java EE classes, so it doesn't work.
    Nikos

    Hi Yarecki,
    I'm afraid I'm also a newbie, and I'm feeling my way around things.
    I have written some code. However, you should be warned that... it doesn't work!
            String wsdlLocation;//=...some URL...
            String input;//=...XML...either SOAP message either SOAP payload
         try{
             java.net.URL wsdlURL = new java.net.URL(wsdlLocation);
                //these should be extracted from the service WSDL document
                java.lang.String serviceName = "CalculationServiceService";
                java.lang.String portName = "CalculationServicePort";
                String namespace = "http://localhost:8080/CalculationServiceService";
                javax.xml.transform.Source inputSource = new javax.xml.transform.stream.StreamSource(new java.io.StringReader(input));
                javax.xml.namespace.QName serviceQName = new javax.xml.namespace.QName(namespace, serviceName);
                javax.xml.namespace.QName portQName = new javax.xml.namespace.QName(namespace, portName);
                javax.xml.ws.Service service = javax.xml.ws.Service.create(wsdlURL, serviceQName);           
                javax.xml.ws.Dispatch<javax.xml.transform.Source> dispatch =
                      service.createDispatch(portQName, javax.xml.transform.Source.class, javax.xml.ws.Service.Mode.MESSAGE);
           //javax.xml.ws.Dispatch<javax.xml.transform.Source> dispatch =
               //service.createDispatch(portQName, javax.xml.transform.Source.class, javax.xml.ws.Service.Mode.PAYLOAD);
    //alternative method, with different input
                javax.xml.transform.Source replySource = dispatch.invoke(inputSource);
                javax.xml.bind.JAXBContext jc = javax.xml.bind.JAXBContext.newInstance(nikos.test.CalculationResult.class);
                javax.xml.bind.Unmarshaller unm = jc.createUnmarshaller();
                nikos.test.CalculationResult result = (nikos.test.CalculationResult)unm.unmarshal(replySource);
                System.out.println(result.getResult());
            } catch (JAXBException ex) {
                JOptionPane.showMessageDialog(this, ex);
                ex.printStackTrace();
            } catch (MalformedURLException ex) {
                ex.printStackTrace();//this should not happen.
            }In fact I'm getting a weird error
    javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException
            at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187)
            at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:108)
            at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:187)
            at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:206)
         //lines from my source code are here
    Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException
            at com.sun.enterprise.security.jmac.config.PipeHelper.makeFaultResponse(PipeHelper.java:328)
            at com.sun.enterprise.security.jmac.config.PipeHelper.getFaultResponse(PipeHelper.java:366)
            at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:223)
            at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129)
            at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
            at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
            at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
            at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
            at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
            at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
            at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
            at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
            at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:113)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:87)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:200)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:129)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
            at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: java.lang.NullPointerException
            at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:163)
            at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218)
            ... 39 moreAs I've said before I've called this web service successfully using three different methods.
    It appears it has something to do with security issues, but I've no security at all...

  • Web Services with Large Result Sets

    Hi,
    We have an application where in a call to a web service could potentially yield a large result set. For the sake of argument, lets say that we cannot limit the result set size, i.e., by criteria narrowing or some other means.
    Have any of you handled paging when using Web Services? If so can you please share your experiences considering Web Services are stateless? Any patterns that have worked? I am aware of the Value List pattern but am looking for previous experiences here.
    Thanks

    Joseph Weinstein wrote:
    Aswin Dinakar wrote:
    I ran the test again and I removed the ResultSet.Fetch_Forward and it
    still gave me the same error OutOfMemory.
    The problem to me is similar to what Slava has described. I am parsing
    the result set in memory storing the results in a hash map and then
    emptying the post processed results into a table.
    The hash map turns out to be very big and jvm throws a OutOfMemory
    Exception.
    I am not sure how I can turn this around -
    I can partition my query so that it returns smaller chunks or "blocks"
    of data each time(say a page of data or two pages of data). Then I can
    store a page of data in the table. The problem with this approach is
    that it is not exactly transactional. Recovery would be very difficult
    in this approach.
    I could do this in a try catch block page by page and then the catch
    could go ahead and delete the rows that got committed. The question then
    becomes what if that transaction fails ?It sounds like you're committing the 'cardinal performance sin of DBMS processing',
    of shovelling lots of raw data out of the DBMS, processing it in some small way,
    and sending it (or some of it) back. You should instead do this processing in
    a stored procedure or procedures, so the data is manipulated where it is. The
    DBMS was written from the ground up to be a fast efficient set-based processor.
    Using clever SQL will pay off greatly. Build your saw-mills where the trees are.
    JoeYes we did think of stored procedures. Like I mentioned yesterday some of the post
    processing depends on unicode and specific character sets. Java seemed ideally suited
    to this since it handles these unicode characters very well and has all these libraries
    we can use. Moving this to DBMS would mean we would make that proprietary (not that we
    wont do it if it became absolutely essential) but its one of the reasons why the post
    processing happens in java. Now that you mention it stored procedures seem the best
    option.

  • How can you develop photo galleries with multiple pages using the web module?

    Going through the web module I can see there are many options for developing a web page with a single collection of photos.  How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?

    This thread will give you several ideas.
    Re: How do you embed a gallery into an existing website?

  • An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to ad

    An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to adapt the file to make its reading possible?
    Did somebody get the same problem?

    It is a high order probability that your SQL's report generator is creating the PDF, not Acrobat (which by design and EULA cannot be used in as/with server).
    That the report generator outputs to an old-old version of PDF bears this out.
    Wiki articles on PDF are very nice for those high level intro summaries.
    To know / understand PDF you purchase and study the ISO Standard for PDF (ISO 32000-1:2008).
    Rather than "PDF validation" you may want to consider addressing the appearent root cause of the problem(s).
    You can change the email2fax application to one that can deal with older PDF versions.
    You can change the report generator to one that can output to the ISO Standard.
    (Perhaps the in-use application can be configured to output to the current version of PDF (i.e., the ISO Standard).
    Be well...

  • Web Service with Complex Results and Flex

    I have created a Enterprise Java Bean that has one "test" method that returns a String[]. I have compiled, deployed and registered this bean in Sun's Application Server 8.1. I am using NetBeans 5.0 to develop this project.
    I try to load this web service into Flex and I get a fault thrown: TypeError: Error #1034: Type Coercion failed: cannot convert []@29e5d06 to XMLList. I have set the returnType in Flex as "e4X.". Do I need to do this in my webservice.
    Any help would be appreciated.

    HI Andrea,
        I think with present netweaver developer studio , we can create Web services with end points as simple data types in java and the array of that simple data types.
        not sure whether it support our own custom developed classes as end points.
         just go through these links.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/af60f2e04d0848888675a800623a81/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/af60f2e04d0848888675a800623a81/frameset.htm
    from this we will get Restrictions for WS Endpoints.
                             Regards
                              Kishor Gopinathan

Maybe you are looking for

  • One time Cus/Ven

    Hi, I we have 100 one time vendor, hope we don't have to maintain master record for each vendor but how can we main their account and do payment transactions. I read the SAP material it says we have to create collectiv master record, does it mean one

  • Frame around a page

    Hello, I'm using iWeb 3.04. I've made a site, I would like to draw a frame around my page (just a simple rectangle). Is this possible? Thanks!

  • Mac OSX, Startup Error with CC 2014 (CC works): Couldn't find any capable video play modules

    I'm getting this on two different machines running different OSX versions with different graphics cards: Adobe Premiere Pro Startup Error Adobe Premiere Pro could not find any capable video play modules. Please update your video display drivers and s

  • Mail constantly freezes

    Ever since I upgraded to Mavericks, which was shortly after it was released, Apple Mail constantly freezes. It's an odd sort of freeze in that I can still scroll through existing mail and can compose a new email. However, it doesn't bring in new mail

  • Issue with Epson RX500 - scanning

    So I tried scanning some stuff today using image capture on and it worked great the first two times. After that it would scan but then not show anything in image capture and the program would freeze up. It wouldn't lock the program but you couldn't s