XML + webservices = no filtering??

Greetings!
I have the following situation:
I use a webservice to get my information. This returns an xml
in the following state:
[code]<getBronnenResult xmlns="
http://tempuri.org/" 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">
<Bronnen>
<id>81</id>
<sCount>260</sCount>
<title>Plant grown from cell culture tissue in test
tube</title>
<number>100121</number>
<width>180</width>
<height>134</height>
<croptype/>
<growthstage/>
<source>BASF</source>
<photographer/>
<photocredit>Print free of charge. Please use
following photo credit "Copyright © BASF".</photocredit>
<region>Europe</region>
<country>Germany</country>
<city/>
<disease/>
<captionnotes/>
<numberofpeople>0</numberofpeople>
<nameofmodel/>
<resolution>72</resolution>
<bitdepth>24</bitdepth>
<colourspace>RGB</colourspace>
<filetype>JPEG</filetype>
<filesize>47725</filesize>
<subject>Health,Integrated pest management
(IPM),Research and development</subject>
<category>Biotechnology,Crop
protection,Science</category>
</Bronnen>[/code]
I already added the tempuri namespace to my project.
when I do the following code
[code]trace("=> " + tempResult.id);[/code]
I get this result
<id xmlns="
http://tempuri.org/" 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">83</id>
But I can't seem to filter it...
so this doesn't seem to work
[code]trace("=> " + tempResult.(child(id)=='83'));[/code]
or any variation on this code...
does someone have a solution for this problem???

after 14h of non stop searching:
public function photoDataHandler(event:ResultEvent):void{
var xml:XML = new XML(event.result.toString());
var lijst:XMLList = xml.getBronnenResult;
var tmp:XMLList = lijst.Bronnen.(child("id").toString() ==
"1764");
trace("temp = " + tmp);
}

Similar Messages

  • Getting xml webservices using soap on xcode

    there is some error in the code , i dont know how to correct it !! *frustated*
    #import "XYZViewController.h"
    @interface XYZViewController ()
    @end
    @implementation XYZViewController
    @synthesize UserName,Password;
    #define startActivityIndicator  [[UIApplication sharedApplication]setNetworkActivityIndicatorVisible:YES]
    #define stopActivityIndicator  [[UIApplication sharedApplication]setNetworkActivityIndicatorVisible:NO];
    // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
        if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
            // Custom initialization
      nodeContent = [[NSMutableString alloc]init];
        return self;
    -(IBAction)invokeService
    if([[UserName text] isEqualToString:@""] || [[Password text] isEqualToString:@""] ) {
            UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"WebService" message:@"Supply Data in UserName or Password field" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
            [alert show];
        else {
      NSString *soapFormat = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
      "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
      "<soap:Body>\n"
                                    "<UserAuthentication xmlns=\"http://tempuri.org/\">\n"
                                    "<UserName>%@</UserName>"
                                    "<Password>%@</Password>"
                                    "</UserAuthentication>"
                                    "</soap:Body>"
                                    "</soap:Envelope>", UserName, Password];
      NSLog(@"The request format is %@",soapFormat);
      NSURL *locationOfWebService = [NSURL URLWithString:@"http://10.146.89.22/userauth/Service.asmx"];
      NSLog(@"web url = %@",locationOfWebService);
      NSMutableURLRequest *theRequest = [[NSMutableURLRequest alloc]initWithURL:locationOfWebService];
      NSString *msgLength = [NSString stringWithFormat:@"%d",[soapFormat length]];
      [theRequest addValue:@"text/xml" forHTTPHeaderField:@"Content-Type"];
      [theRequest addValue:@"http://tempuri.org/UserAuthentication" forHTTPHeaderField:@"SOAPAction"];
      [theRequest addValue:msgLength forHTTPHeaderField:@"Content-Length"];
      [theRequest setHTTPMethod:@"POST"];
            [theRequest setHTTPBody: [soapFormat dataUsingEncoding:NSUTF8StringEncoding]];
      //the below encoding is used to send data over the net
      [theRequest setHTTPBody:[soapFormat dataUsingEncoding:NSUTF8StringEncoding]];
      NSURLConnection *connect = [[NSURLConnection alloc]initWithRequest:theRequest delegate:self];
      if (connect) {
      webData = [[NSMutableData alloc]init];
                startActivityIndicator;
      else {
      NSLog(@"No Connection established");
    //NSURLConnection delegate method
    -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
      [webData setLength: 0];
    -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
      [webData appendData:data];
    -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    NSLog(@"ERROR with theConenction");
    -(void)connectionDidFinishLoading:(NSURLConnection *)connection
    NSLog(@"DONE. Received Bytes: %d", [webData length]);
    NSString *theXML = [[NSString alloc] initWithBytes: [webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding];
      NSLog(@"%@",theXML);
    xmlParser = [[NSXMLParser alloc]initWithData:webData];
      [xmlParser setDelegate: self];
    //[xmlParser setShouldResolveExternalEntities: YES];
      [xmlParser parse];
    //[webData release];
    //[resultTable reloadData];
        stopActivityIndicator;
    //xml delegates
    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
    - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
      [nodeContent appendString:[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
    - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
    if ([elementName isEqualToString:@"UserAuthenticationResult"]) {
      UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:@"you have entered!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
                [alert show];
        }/*else {
            UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Message" message:@"you have not entered!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok",nil];
      [alert show];
    - (void)viewDidUnload {
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    -(IBAction)goAwayKeyboard:(id)sender{
        [sender resignFirstResponder];
    -(IBAction)tapBackground:(id)sender{
        [UserName resignFirstResponder];
        [Password resignFirstResponder];
    @end

    sir , i didnt wanna offend you with this stupid question of mine ,moreover i didnt know if noobs ask some question pros really get angry, but i am really new to this thing, *sorry*.
    theres some problem with userauthenticationresult , i am not able to connect , how to return its value ! 

  • Xml webservice-parameter

    i have .net webservice and java client.. i wanna send parameter to this webservice in document style.. and the webservice function's return value again in document style..
    How can i do it plz help me..
    Thanks

    I might just be beating around the bush so in that case just ignore the reply.
    see this top level function maybe they help in a way:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package.html?filter_fle x=4.1&filter_flashplayer=10.1&filter_air=2
    decodeURI(uri:String):String
    Decodes an encoded URI into a string. Top Level
        decodeURIComponent(uri:String):String
    Decodes an encoded URI component into a string. Top Level
        encodeURI(uri:String):String
    Encodes a string into a valid URI (Uniform Resource Identifier). Top Level
        encodeURIComponent(uri:String):String
    Encodes a string into a valid URI component. Top Level
        escape(str:String):String
    Converts the parameter to a string and encodes it in a URL-encoded format,       
    where most nonalphanumeric characters are replaced with % hexadecimal sequences.
    Whenever I worked with webservice I did it with generated wit objects not XML so
    not sure those apply. However I had issues with escaping with URL loader and old
    cgi scripts so those functions were helpfull.
    If they do not apply to your case ignore this as I said,
    Cheers,
    Claudiu

  • HL7 to xml webservice

    Hi Gurus,
    Is there any webservice (XEngine functionality) or command line tool available to convert raw HL7 to xml and vice versa in B2B deployment?
    Thanks,
    Datla

    Thanks Michael,
    Yes, I am interested to look at that solution with JMS Queue.
    BTW: Can you look at my question about QBrowser V2 setup on VirtualBox here..
    How to use QBrowser V2 with Virtual box environment
    Thanks,
    Datla
    Edited by: u101947 on May 29, 2011 10:57 AM

  • Xml webservices configuration problem

    WHILE EXECUTING
    set long 500
    set pagesize 100
    XQUERY declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd";
    for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name='orawsv']
    return $doc
    I GOT AN ERROR
    Error starting at line 3 in command:
    select column_value from xmltable(' declare default element namespace "http://xmlns.oracle.com/xdb/xdbconfig.xsd";
    for $doc in fn:doc("/xdbconfig.xml")/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name='orawsv']
    return $doc')
    Error at Command Line:4 Column:146
    Error report:
    SQL Error: ORA-02000: missing COLUMNS keyword
    02000. 00000 -  "missing %s keyword"
    Please help ,i needed to xml db configuration

    showed me this..
    Oops! Google Chrome could not connect to 127.0.0.1:8080
    when i ran the code
    connect / AS sysdba
    SELECT dbms_xdb.gethttpport FROM dual;
    EXEC dbms_xdb.sethttpport(8080);
    ALTER system SET dispatchers='(PROTOCOL=TCP)(SERVICE=$ORACLE_SIDXDB)' comment='Dispatcher enabled for XMLDB Protocol Server' scope = BOTH;
    ALTER system SET shared_servers=5 scope=BOTH;
    ALTER system register;
    grant dba, xdbadmin to test;
    alter user test identified by test account unlock;
    set echo off
    set termout on
    set feed off
    show user
    --Enable the orawsv entry points in xdbconfig.xml
    DECLARE
      SERVLET_NAME VARCHAR2(32) := 'orawsv';
    BEGIN
    DBMS_XDB.deleteServletMapping(SERVLET_NAME);
    DBMS_XDB.deleteServlet(SERVLET_NAME);
    DBMS_XDB.addServlet(NAME => SERVLET_NAME,
    LANGUAGE => 'C',
    DISPNAME => 'Oracle Query Web Service',
    DESCRIPT => 'Servlet for issuing queries as a Web
    Service',
    SCHEMA => 'XDB');
    DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
    ROLENAME => 'XDB_WEBSERVICES',
    ROLELINK => 'XDB_WEBSERVICES');
    DBMS_XDB.addServletMapping(PATTERN => '/orawsv/*',NAME => SERVLET_NAME);
    END;
    commit;
    -- User Name declare USERNAME=SCOTT -- User Password  declare PASSWORD=tiger
    -- DBMS_NETWORK_ACL_ADMIN to Validate Grant Permission
    begin
    dbms_network_acl_admin.drop_acl('/localhost.xml');
      end;
      begin
    dbms_network_acl_admin.create_acl('/localhost.xml', 'ACL for 127.0.0.1',
    '&USERNAME', true, 'connect');
    dbms_network_acl_admin.assign_acl('/localhost.xml', '127.0.0.1'); end;
    and typed in url
    as
    127.0.01:8080/orawsv?wsdl

  • Escape XML Webservice

    Hi All,
    I´m consuming a web service service but I´m trouble about some strange characters.
    Below there is a little peace of the return. The information below is returned in a String field
    &lt;FATURA_PDF TIPO_FATURA="S">
    The problem is this "&lt;" sequence . I was expecting "<".
    my web method returns is ok!
    I created a java client and everything works fine. The problem is when I get this return from ALSB.
    Does any one can help me?
    Tks.

    that´s the real error
    & l t ; FATURA_PDF TIPO_FATURA="S">
    Please, ignore blank spaces

  • Filtering xml records from CLOB database column

    Hi,
    I have a xml data stored in a CLOB field in database.
    I need to retrieve the contents that match my filter criteria.
    Say my xml is like below,
    <ROOT>
    <EMP>
    <EMP_NO>1</EMP_NO>
    <SAL>100</SAL>
    </EMP>
    <EMP>
    <EMP_NO>2</EMP_NO>
    <SAL>200</SAL>
    </EMP>
    <EMP>
    <EMP_NO>3</EMP_NO>
    <SAL>300</SAL>
    </EMP>
    </ROOT>
    I want to fetch the entire xml tree but filtered based on the SAL field, WHERE SAL>100.
    So my resulting xml should be
    <ROOT>
    <EMP>
    <EMP_NO>2</EMP_NO>
    <SAL>200</SAL>
    </EMP>
    <EMP>
    <EMP_NO>3</EMP_NO>
    <SAL>300</SAL>
    </EMP>
    </ROOT>
    I will be having 'n' number of columns, and I cant specify everything in COLUMNS clause.
    I want to select all nodes, but filter based on few fields.
    I tried using it as below, but I feel it took some time for it to display results.
    select x.*
    from emp t
    , xmltable(
    '/ROOT'
    passing xmltype(t.doc)
    columns VSAL number PATH './EMP/SAL'
    , OTHER xmltype PATH '.'
    ) x
    where x.VSAL>100
    Please suggest me a solution that doesnt consume much time.
    I think the problem with my query is OTHER xmltype PATH '.'
    Here 'xmltype' datatype is expensive I think, because after I included that, the query took some time.
    I cant hardcode the SAL value of 100 as its dynamic. So I am unable to use this method of filtering.
    select x.*
    from emp t
    , xmltable(
    '/ROOT[.//EMP/SAL>100]'
    passing xmltype(t.doc)
    ) x
    Thanks!
    Edited by: Chit on Mar 24, 2012 10:12 AM

    Hi,
    I want to fetch the entire xml tree but filtered based on the SAL field, WHERE SAL>100.Then you have to rebuild the document keeping only the elements satisfying the condition (and yes, you can bind XQuery variables too) :
    SQL> select xmlserialize(document x.doc as clob indent)
      2  from emp t
      3     , xmltable(
      4         '<ROOT>
      5          {
      6            for $i in /ROOT/EMP
      7            where $i/SAL > $minsal
      8            return $i
      9          }
    10          </ROOT>'
    11          passing xmlparse(document t.doc)
    12                , 100 as "minsal"
    13          columns doc xmltype path '.'
    14       ) x
    15  ;
    XMLSERIALIZE(DOCUMENTX.DOCASCL
    <ROOT>
      <EMP>
        <EMP_NO>2</EMP_NO>
        <SAL>200</SAL>
      </EMP>
      <EMP>
        <EMP_NO>3</EMP_NO>
        <SAL>300</SAL>
      </EMP>
    </ROOT>
    Or you can just delete the nodes you don't want :
    SQL> var minsal number
    SQL> exec :minsal := 100
    PL/SQL procedure successfully completed
    SQL> select xmlserialize(document
      2           deletexml( xmlparse(document t.doc)
      3                    , '/ROOT/EMP[SAL<='||:minsal||']' )
      4           as clob indent
      5         )
      6  from emp t
      7  ;
    XMLSERIALIZE(DOCUMENTDELETEXML
    <ROOT>
      <EMP>
        <EMP_NO>2</EMP_NO>
        <SAL>200</SAL>
      </EMP>
      <EMP>
        <EMP_NO>3</EMP_NO>
        <SAL>300</SAL>
      </EMP>
    </ROOT>
    Please suggest me a solution that doesnt consume much time.
    I think the problem with my query is OTHER xmltype PATH '.'The real problem is the CLOB text storage.
    If you want performance, use binary XMLType or object-relational.

  • Fields missing from webservice datasource in SSRS

    We are using a XML webservice as a datasource for SSRS. The webservice is returning  the hierarchy of departments of our company.
    The data is consumed by SSRS but some fields are missing.
    This is (simplified) what is returned by the webservice:
    <department>
      <nr>1</nr>
      <name>name1/name>
    </department>
    <department>
      <nr>2</nr>
      <name>name2/name>
      <parentdepartment>1</parentdepartment>
    </department>
    etc
    The field parentdepartment is missing from the fieldlist, even if I add it by hand it will be empty.
    At this forum I found that fields are even skipped when the first item has an empty value for a certain field so the absence of a field in the first item must certainly be the
    problem. Nr 1 has no parentdepartment field.
    Is there a way around this like skipping the first department, we don't need it, or forcing the SSRS-datasource to add the parentdepartment field.
    As it is used by many applications we prefer not to change the webservice to skip the first or add dummy values to the first item.

    Typically if the field doesn't show up the CR can't figure out what type it is which means when we query the DB for the field type the client/server returns the wrong type or some type that CR doesn't support.
    How is the field defined on the server?
    Thank you
    Don

  • Javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file:

    Hi,
    I am using jboss for deploying the webservice. when i am deploying the webservice i am getting following error.
    20:26:30,696 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss4.0/jboss-4.0.0/server/default/data/wsdl/acWebSe
    rvices.war/AddressWrapper.wsdl
    20:26:30,696 ERROR [ServiceDeployer] Cannot startup webservice for: acWebServices.war
    org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (RuntimeMBeanException: null Cau
    se: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: WEB-INF/AddressWrapper-mapping.xml)
    at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:342)
    at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
    at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
    at $Proxy25.handleNotification(Unknown Source)
    at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
    at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
    at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:378)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
    at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20
    4)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Here is my mapping.xml file :
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_RequestStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:test</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_ResponseStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:testResponse</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <service-interface-mapping>
    <service-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-interface>
    <wsdl-service-name xmlns:serviceNS="http://com.ca.warpper">serviceNS:AddressWrapper</wsdl-service-name>
    <port-mapping>
    <port-name>AddressWrapperIntfPort</port-name>
    <java-port-name>AddressWrapperIntfPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapperIntf</service-endpoint-interface>
    <wsdl-port-type xmlns:portTypeNS="http://com.ca.warpper">portTypeNS:AddressWrapperIntf</wsdl-port-type>
    <wsdl-binding xmlns:bindingNS="http://com.ca.warpper">bindingNS:AddressWrapperIntfBinding</wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>test</java-method-name>
    <wsdl-operation>test</wsdl-operation>
    <wrapped-element/>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    my wsdl :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="AddressWrapper" targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="test">
    <sequence/></complexType>
    <complexType name="testResponse">
    <sequence/></complexType>
    <element name="test" type="tns:test"/>
    <element name="testResponse" type="tns:testResponse"/></schema></types>
    <message name="AddressWrapperIntf_test">
    <part name="parameters" element="tns:test"/></message>
    <message name="AddressWrapperIntf_testResponse">
    <part name="result" element="tns:testResponse"/></message>
    <portType name="AddressWrapperIntf">
    <operation name="test">
    <input message="tns:AddressWrapperIntf_test"/>
    <output message="tns:AddressWrapperIntf_testResponse"/></operation></portType>
    <binding name="AddressWrapperIntfBinding" type="tns:AddressWrapperIntf">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="test">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation></binding>
    <service name="AddressWrapper">
    <port name="AddressWrapperIntfPort" binding="tns:AddressWrapperIntfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
    my webservice.xml
    <webservices
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:impl="http://com.myapp/ws4ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>AddressWrapper</webservice-description-name>
    <wsdl-file>WEB-INF/wsdl/AddressWrapper.wsdl</wsdl-file>
    <jaxrpc-mapping-file>WEB-INF/AddressWrapper-mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>AddressWrapper</port-component-name>
    <wsdl-port>AddressWrapperIntfPort</wsdl-port>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-endpoint-interface>
    <service-impl-bean>
    <servlet-link>AddressWrapperServlet</servlet-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>

    Problem was name of xml file in webservice.xml is diff from the actually created .xml file
    Problem solved
    Thanks

  • Parsing a single XML node by JAXB

    Hi,
    we are developing an application to communicate with an XML webservice. Basically there are a lot of diffferent xsd files, one group are object types while another are in and out formats for action requests.
    My question here is if it would be possible to parse an incoming XML string, look through it and let JAXB unmarshal only a couple of nodes from the XML. I would do this to parse my XML to a business object (containing other BO's) and because I would have to check on status information that came with the XML before trying to parse anything by JAXB.
    Any advice is greatly appreciated.
    Regards,
    Steven

    Above suggestion does not work for me.
    Am currently using this solution
    feed = event.result as XML;
    switch(feed.channel.item.length()) {
    case 0 :
      trace('No results found');
      break;
    case 1 :
      items = new ArrayCollection(ArrayUtil.toArray(feed.channel.item));
      break;
    default :
      items = convertXmlToArrayCollection(feed);
    Help me with a util function or something.

  • Deploying an EJB WebService under WLS 9.1 - port component "Hello" is not found in wsdl.

    Hi,
    I'm trying to deploy a simple EJB webservice example on WLS 9.1. The appc
    compile works fine, but the server deployment throw the following error
    message:
    [java] port component "Hello" is not found in wsdl.
    It's simple JAX-RPC based webservice where a SessionBean method is used as
    the service implementation. The same configuration (webservice.xml,
    mapping.xml and HelloService.wsdl) works fine under JBoss 4.0, but not with
    WLS 9.1. Maybe it's a simple configuration error and someone can help.
    Regards
    Guido
    Appendix
    webservice.xml
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1\.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>HelloService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
    <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>Hello</port-component-name>
    <wsdl-port>HelloPort</wsdl-port>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <service-impl-bean>
    <ejb-link>HelloBean</ejb-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>
    mapping.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/</namespaceURI>
    </package-mapping>
    <service-interface-mapping>
    <service-interface>com.jcoffee.components.ws.HelloService</service-interface
    >
    <wsdl-service-name
    xmlns:serviceNS="http://ws.components.jcoffee.com/">serviceNS:HelloService</
    wsdl-service-name>
    <port-mapping>
    <port-name>HelloPort</port-name>
    <java-port-name>HelloPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <wsdl-port-type
    xmlns:portTypeNS="http://ws.components.jcoffee.com/">portTypeNS:Hello</wsdl-
    port-type>
    <wsdl-binding
    xmlns:bindingNS="http://ws.components.jcoffee.com/">bindingNS:HelloBinding</
    wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>hello</java-method-name>
    <wsdl-operation>hello</wsdl-operation>
    <method-param-parts-mapping>
    <param-position>0</param-position>
    <param-type>java.lang.String</param-type>
    <wsdl-message-mapping>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_hello</w
    sdl-message>
    <wsdl-message-part-name>String_1</wsdl-message-part-name>
    <parameter-mode>IN</parameter-mode>
    </wsdl-message-mapping>
    </method-param-parts-mapping>
    <wsdl-return-value-mapping>
    <method-return-value>java.lang.String</method-return-value>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_helloRes
    ponse</wsdl-message>
    <wsdl-message-part-name>result</wsdl-message-part-name>
    </wsdl-return-value-mapping>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    HelloService.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="HelloService"
    targetNamespace="http://ws.components.jcoffee.com/"
    xmlns:tns="http://ws.components.jcoffee.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="Hello_hello">
    <part name="String_1" type="xsd:string"/>
    </message>
    <message name="Hello_helloResponse">
    <part name="result" type="xsd:string"/>
    </message>
    <portType name="Hello">
    <operation name="hello" parameterOrder="String_1">
    <input message="tns:Hello_hello"/>
    <output message="tns:Hello_helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:Hello">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="hello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </input>
    <output>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </output>
    </operation>
    </binding>
    <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>
    and last but not least the ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>JCoffee web service sample</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>HelloBean</ejb-name>
    <service-endpoint>com.jcoffee.components.ws.Hello</service-endpoint>
    <ejb-class>com.jcoffee.components.ws.HelloBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

    Hi again,
    I got it - i've forgot the namespace prefix for the wsdl-port.
    Now it works.
    Thanks!
    "Ben" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]...
    Hi,
    I'm trying to deploy a simple EJB webservice example on WLS 9.1. The appc
    compile works fine, but the server deployment throw the following error
    message:
    [java] port component "Hello" is not found in wsdl.
    It's simple JAX-RPC based webservice where a SessionBean method is used as
    the service implementation. The same configuration (webservice.xml,
    mapping.xml and HelloService.wsdl) works fine under JBoss 4.0, but notwith
    WLS 9.1. Maybe it's a simple configuration error and someone can help.
    Regards
    Guido
    Appendix
    webservice.xml
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1\.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>HelloService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
    <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>Hello</port-component-name>
    <wsdl-port>HelloPort</wsdl-port>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <service-impl-bean>
    <ejb-link>HelloBean</ejb-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>
    mapping.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.jcoffee.components.ws</package-type>
    <namespaceURI>http://ws.components.jcoffee.com/</namespaceURI>
    </package-mapping>
    <service-interface-mapping>
    <service-interface>com.jcoffee.components.ws.HelloService</service-interface
    >>
    <wsdl-service-name
    xmlns:serviceNS="http://ws.components.jcoffee.com/">serviceNS:HelloService</
    wsdl-service-name>
    <port-mapping>
    <port-name>HelloPort</port-name>
    <java-port-name>HelloPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.jcoffee.components.ws.Hello</service-endpoin
    t-interface>
    <wsdl-port-type
    xmlns:portTypeNS="http://ws.components.jcoffee.com/">portTypeNS:Hello</wsdl-
    port-type>
    <wsdl-binding
    xmlns:bindingNS="http://ws.components.jcoffee.com/">bindingNS:HelloBinding</
    wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>hello</java-method-name>
    <wsdl-operation>hello</wsdl-operation>
    <method-param-parts-mapping>
    <param-position>0</param-position>
    <param-type>java.lang.String</param-type>
    <wsdl-message-mapping>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_hello</w
    sdl-message>
    <wsdl-message-part-name>String_1</wsdl-message-part-name>
    <parameter-mode>IN</parameter-mode>
    </wsdl-message-mapping>
    </method-param-parts-mapping>
    <wsdl-return-value-mapping>
    <method-return-value>java.lang.String</method-return-value>
    <wsdl-message
    xmlns:wsdlMsgNS="http://ws.components.jcoffee.com/">wsdlMsgNS:Hello_helloRes
    ponse</wsdl-message>
    <wsdl-message-part-name>result</wsdl-message-part-name>
    </wsdl-return-value-mapping>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    HelloService.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="HelloService"
    targetNamespace="http://ws.components.jcoffee.com/"
    xmlns:tns="http://ws.components.jcoffee.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="Hello_hello">
    <part name="String_1" type="xsd:string"/>
    </message>
    <message name="Hello_helloResponse">
    <part name="result" type="xsd:string"/>
    </message>
    <portType name="Hello">
    <operation name="hello" parameterOrder="String_1">
    <input message="tns:Hello_hello"/>
    <output message="tns:Hello_helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:Hello">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="rpc"/>
    >
    >
    <operation name="hello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </input>
    <output>
    <soap:body use="literal" namespace="http://ws.components.jcoffee.com/"/>
    </output>
    </operation>
    </binding>
    <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>
    and last but not least the ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>JCoffee web service sample</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>HelloBean</ejb-name>
    <service-endpoint>com.jcoffee.components.ws.Hello</service-endpoint>
    <ejb-class>com.jcoffee.components.ws.HelloBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>HelloBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

  • How to configure crystal report xml file as data source in BOE in Solaris?

    Hi,
    How to configure crystal reports from xml file as data source in Solaris? I didn't find any suitable driver for xml / excel files for sun solaris.
    Which driver i have to use to connect xml file to crystal report to view my crystal report in solaris BOE?
    And the same way excel file as data source for crystal report.
    Thanks

    Hi Don thanks for the reply,
    In windows environment I donot have any problem when creating crystal report from Xml file and Excel file. After creating reports when I publish those into boe server in solaris, getting connection failed error.
    My solaris BOE server doent have any network connection with windows machines. So i have to place the files in solaris server.
    Below the steps what I tried:
    1. Created crystal reports from cr designer in windows using ADO.Net(xml) and in another try with Xml webservices drivers. Reports works well as it should.
    2. Saved in BOE repository in Solaris server from crystal reports and changed database configuration settings as:
        -Used custom database logon information and specified cr_xml as custom driver.
        -Chnaged database path to file directory path according to solaris server file path </app/../../>
        -tried table prefix also
        - Selected radio button use same database logon as when report is run saved.
    My environment :
    SAP BOXI3.1 sp3
    crystal reports 2008 sp3
    SunOS
    Cr developing in windows 7.
    For Excel I tried with ODBC in windows but I can't find any ODBC or JDBC drivers for Excel in solaris.
    Any help to solve my issues
    Thanks
    Nagalla

  • Flilter webpart to read the data from XML template

    Hi
    Is there any out of the box webpart to read data from xml file for filtering in sharepoint 2010.
    The filter dialog look like following functionality and allow to select only one value.
      .Paretn1
         chiild1
         child2
     .Parent2
         child1
         child2
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to read data from xml file with the out of the box web part.
    There is no out of the box web part for us to read the data from the xml file in SharePoint 2010.
    However, you can create your own custom web part to achieve it.
    There are some articles about the read the xml file, you can have a look at them.
    http://mosshowto.blogspot.com/2008/10/simplify-xpath-use-c-class.html
    http://social.technet.microsoft.com/Forums/en-US/6ae03f7a-23fe-4361-9e4f-d82bd3802ebf/how-to-read-data-from-an-xml-file-in-sharepoint-2010s?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • What is the best book on XML and SOAP with Java?

    I need to learn xml and soap. Could someone recommend a book or tutorials on the subject. I have just went through teach yourself java in 21 days.
    Thank you
    Noah

    Well using XML is very easy and I can assure you that a simple tutorial can get you on the right track quickly. A quick google search gave me this one, which looks like a good start: [http://totheriver.com/learn/xml/xmltutorial.html|http://totheriver.com/learn/xml/xmltutorial.html]
    As for SOAP, that is a more complex subject. You are looking for JAX-WS (Java API for XML webservices). I suggest checking out amazon.com searching for "java web services". The user reviews should give you a very good idea which book is good and which one stinks.

  • How to handle Webservice

    Hi Experts,
    I want to know how to handle webservice in web Dynpro Application.
    I need some documentation regarding this.
    can any one help me.
    Advance Thanks,
    P.J.Balaji

    Hi Balaji,
    Check These links..
    <a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq-Models-AdaptiveWebService&">Adaptive Webservices</a>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/6bfb2c4e-0a01-0010-8eb4-f21a42d8f6ec [original link is broken] [original link is broken]
    <a href="http://www.systinet.com/resources/tutorials">Webservice tutorials</a>
    <a href="http://www.onjava.com/pub/a/onjava/2001/08/07/webservices.html">Java Webservices and Primer</a>
    <a href="http://www.learningtree.com/courses/577.htm">Building XML webservices with Java</a>
    [url=http://www.accelebrate.com/java_webservices_training/web_services.htm]Introduction[/url]
    Urs GS

Maybe you are looking for

  • Header and Footer in PDF is lost when exporting application

    When generating an export script to migrate an application, headers and footer you include in your report definition are lost, that contents are not included in the script. Any workaround? Regards.

  • Adding a print command to a topic

    Strange that they can't use the Print icon or right click and print a topic, but our users want a print command in FlashHelp topics that they can click to go to the Windows print dialog. I inserted the following javascript in the header of the topic

  • Gnome App "Covers" Screen Problem

    I have recently noticed a problem with my Gnome installation. When I start up the machine and log in (I use GDM), If I don't touch the keyboard or mouse after entering my password, the screen will look as if a semi-transparent application starts and

  • Re : The ABAP Command

    Is there is any ABAP Command such that my input is program name and output is the program output

  • Process chain is not triggering

    Hi All We have around 4 process chains. these are triggering by an event and these are triggeing since 1 month. We have checked and tried to run them direc scheduling with immediate option. But no use and the process chain will show in yellow and no