Package org.dom4j

Examples of org.dom4j.Document.valueOf()


            "http://foo.com",
            doc.valueOf("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='echo']/wsdl:input[@name='echoRequest']/wsdlsoap:body/@namespace"));
        assertEquals(
            "http://foo.com",
            doc.valueOf("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='echo']/wsdl:output[@name='echoResponse']/wsdlsoap:body/@namespace"));
        assertEquals("muleService1", doc.valueOf("/wsdl:definitions/wsdl:service/@name"));
        assertEquals("muleServicePort1", doc.valueOf("/wsdl:definitions/wsdl:service/wsdl:port/@name"));
        // this port is hardcoded in the wsdl, so not the same as the actual endpoint port
        assertEquals("http://localhost:62083/services/EchoService3",
            doc.valueOf("/wsdl:definitions/wsdl:service/wsdl:port/wsdlsoap:address/@location"));
    }
View Full Code Here


            doc.valueOf("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='echo']/wsdl:input[@name='echoRequest']/wsdlsoap:body/@namespace"));
        assertEquals(
            "http://foo.com",
            doc.valueOf("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='echo']/wsdl:output[@name='echoResponse']/wsdlsoap:body/@namespace"));
        assertEquals("muleService1", doc.valueOf("/wsdl:definitions/wsdl:service/@name"));
        assertEquals("muleServicePort1", doc.valueOf("/wsdl:definitions/wsdl:service/wsdl:port/@name"));
        // this port is hardcoded in the wsdl, so not the same as the actual endpoint port
        assertEquals("http://localhost:62083/services/EchoService3",
            doc.valueOf("/wsdl:definitions/wsdl:service/wsdl:port/wsdlsoap:address/@location"));
    }
}
View Full Code Here

            doc.valueOf("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='echo']/wsdl:output[@name='echoResponse']/wsdlsoap:body/@namespace"));
        assertEquals("muleService1", doc.valueOf("/wsdl:definitions/wsdl:service/@name"));
        assertEquals("muleServicePort1", doc.valueOf("/wsdl:definitions/wsdl:service/wsdl:port/@name"));
        // this port is hardcoded in the wsdl, so not the same as the actual endpoint port
        assertEquals("http://localhost:62083/services/EchoService3",
            doc.valueOf("/wsdl:definitions/wsdl:service/wsdl:port/wsdlsoap:address/@location"));
    }
}
View Full Code Here

  SAXReader xmlReader = createXmlReader();
  Document doc = xmlReader.read( inputStream );
 
  log.info( "Parsing XML Response" );
  Location location = new Location();
  location.setCity( doc.valueOf("/rss/channel/y:location/@city") );
  location.setRegion( doc.valueOf("/rss/channel/y:location/@region") );
  location.setCountry( doc.valueOf("/rss/channel/y:location/@country") );
  location.setZip( zip );
  weather.setLocation( location );
View Full Code Here

  Document doc = xmlReader.read( inputStream );
 
  log.info( "Parsing XML Response" );
  Location location = new Location();
  location.setCity( doc.valueOf("/rss/channel/y:location/@city") );
  location.setRegion( doc.valueOf("/rss/channel/y:location/@region") );
  location.setCountry( doc.valueOf("/rss/channel/y:location/@country") );
  location.setZip( zip );
  weather.setLocation( location );

  Condition condition = new Condition();
View Full Code Here

 
  log.info( "Parsing XML Response" );
  Location location = new Location();
  location.setCity( doc.valueOf("/rss/channel/y:location/@city") );
  location.setRegion( doc.valueOf("/rss/channel/y:location/@region") );
  location.setCountry( doc.valueOf("/rss/channel/y:location/@country") );
  location.setZip( zip );
  weather.setLocation( location );

  Condition condition = new Condition();
  condition.setText( doc.valueOf("/rss/channel/item/y:condition/@text") );
View Full Code Here

  location.setCountry( doc.valueOf("/rss/channel/y:location/@country") );
  location.setZip( zip );
  weather.setLocation( location );

  Condition condition = new Condition();
  condition.setText( doc.valueOf("/rss/channel/item/y:condition/@text") );
  condition.setTemp( doc.valueOf("/rss/channel/item/y:condition/@temp") );
  condition.setCode( doc.valueOf("/rss/channel/item/y:condition/@code") );
  condition.setDate( doc.valueOf("/rss/channel/item/y:condition/@date") );
  condition.setWeather( weather );
  weather.setCondition( condition );
View Full Code Here

  location.setZip( zip );
  weather.setLocation( location );

  Condition condition = new Condition();
  condition.setText( doc.valueOf("/rss/channel/item/y:condition/@text") );
  condition.setTemp( doc.valueOf("/rss/channel/item/y:condition/@temp") );
  condition.setCode( doc.valueOf("/rss/channel/item/y:condition/@code") );
  condition.setDate( doc.valueOf("/rss/channel/item/y:condition/@date") );
  condition.setWeather( weather );
  weather.setCondition( condition );
View Full Code Here

  weather.setLocation( location );

  Condition condition = new Condition();
  condition.setText( doc.valueOf("/rss/channel/item/y:condition/@text") );
  condition.setTemp( doc.valueOf("/rss/channel/item/y:condition/@temp") );
  condition.setCode( doc.valueOf("/rss/channel/item/y:condition/@code") );
  condition.setDate( doc.valueOf("/rss/channel/item/y:condition/@date") );
  condition.setWeather( weather );
  weather.setCondition( condition );

  Atmosphere atmosphere = new Atmosphere();
View Full Code Here

  Condition condition = new Condition();
  condition.setText( doc.valueOf("/rss/channel/item/y:condition/@text") );
  condition.setTemp( doc.valueOf("/rss/channel/item/y:condition/@temp") );
  condition.setCode( doc.valueOf("/rss/channel/item/y:condition/@code") );
  condition.setDate( doc.valueOf("/rss/channel/item/y:condition/@date") );
  condition.setWeather( weather );
  weather.setCondition( condition );

  Atmosphere atmosphere = new Atmosphere();
  atmosphere.setHumidity( doc.valueOf("/rss/channel/y:atmosphere/@humidity") );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.