You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by exgorth <ex...@gmail.com> on 2007/08/31 09:49:43 UTC

Generated client not working (no reply)

Hello.

I was successfully using XFire 1.2.4 as a client to a number of third-party
web services.
Now i try to move to CFX and have problems with even invoking the service
with generated client.

I'm generating client with the following:
<build>
	<plugins>
		<plugin>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-codegen-plugin</artifactId>
			<version>2.0-incubator</version>
			<executions>
				<execution>
					<id>generate-sources</id>
					<phase>generate-sources</phase>
					<configuration>
						<wsdlOptions>
							<wsdlOption>
								<wsdl>http://touralliance.bronni.ru/TourMLSearch.asmx?wsdl</wsdl>
							</wsdlOption>
							<wsdlOption>
								<wsdl>http://touralliance.bronni.ru/Booking.asmx?wsdl</wsdl>
							</wsdlOption>
							<wsdlOption>
								<wsdl>http://touralliance.bronni.ru/Loader.asmx?wsdl</wsdl>
							</wsdlOption>
						</wsdlOptions>
					</configuration>
					<goals>
						<goal>wsdl2java</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>

Then i invoke:
Loader service = new Loader();
LoaderSoap soap = service.getLoaderSoap();
soap.login("xxxx", "xxxx");

And in the console i see:
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@3ecfff:
defining beans
[cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory];
root of factory hierarchy
30.08.2007 16:42:57
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://tourml.ru/service/2006-03-14}Loader from
WSDL: http://touralliance.bronni.ru/Loader.asmx?wsdl

An in the tcpmon window i see that it invokes:
POST http://touralliance.bronni.ru/Loader.asmx HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://tourml.ru/serviceSecurity/2006-03-14/Login"
Accept: *
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.5.0_12
Host: touralliance.bronni.ru
Proxy-Connection: keep-alive
Transfer-Encoding: chunked

1c8
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns5:Login
xmlns="http://tourml.ru/query-request/2004-07-07"
xmlns:ns2="http://tourml.ru/products/2004-04-19"
xmlns:ns3="http://tourml.ru/service/2006-03-14"
xmlns:ns4="http://www.megatec.ru/tourml/extensions"
xmlns:ns5="http://tourml.ru/serviceSecurity/2006-03-14/"><ns5:login>xxxx</ns5:login><ns5:password>xxxx</ns5:password></ns5:Login></soap:Body></soap:Envelope>
0


But there must be reply to the message!!

BTW, the old client works fine at the same time.

Where is the problem?

-- 
View this message in context: http://www.nabble.com/Generated-client-not-working-%28no-reply%29-tf4358641.html#a12421782
Sent from the cxf-user mailing list archive at Nabble.com.