You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by srinivas thallapalli <sr...@gmail.com> on 2013/05/22 15:52:24 UTC

Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Hello,

I am trying to invoke a service which uses SOAP1.2 with below CXF client
code but it fails with exception
while creating the dynamic client object. I have attached the wsdl file for
reference here  employeeservice.wsdl
<http://cxf.547215.n5.nabble.com/file/n5728096/employeeservice.wsdl>  . can
anybody please help on this? 

- Thanks

*Exception in thread "main" java.lang.UnsupportedOperationException: Only
document-style SOAP 1.1 http are supported for auto-selection of endpoint;
none were found.*



public class CXFClient {
	
	public static void invokeDynamicClient() throws Exception {
		
		System.out.println("Executing Dynamic Client.......");	
    	JaxWsDynamicClientFactory dcf =
JaxWsDynamicClientFactory.newInstance();
		//client to be created at application level
		Client client =
dcf.createClient("http://localhost:8080/EmployeeServiceDataService5?WSDL");
    	Object[] response = client.invoke("getEmployeeDetails", 2);
		System.out.println(response[0]);
		client.destroy();
	}
	
    public static void main(String args[]) throws Exception {
        invokeDynamicClient();
    }
}



--
View this message in context: http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Posted by Aki Yoshida <el...@gmail.com>.
Hi Srinivas,
I just saw that the updated version containing the fix is available now.
apache-cxf-2.7.6-20130525.132949-15.zip Sat May 25 13:29:59 UTC 2013

regards, aki


2013/5/23 Daniel Kulp <dk...@apache.org>

>
> On May 23, 2013, at 4:49 AM, Aki Yoshida <el...@gmail.com> wrote:
>
> > Hi Srinivas,
> >
> > the build ran successfully yesterday with
> > https://builds.apache.org/job/CXF-2.7.x/221/
> > Build #221 (May 22, 2013 6:14:25 PM)
> >
> > but this build result didn't seem to have been pushed to the nexus repo.
> >
> > the one you downloaded which is still the latest one in the repo is
> > from earlier yesterday
> > apache-cxf-2.7.6-20130522.112333-11.zip Wed May 22 11:23:43 UTC 2013
> >
> > so this does not have the fix.
> >
> > maybe some temporary problem and we probably need to wait a little bit.
>
> ASF Jenkins seems to be WAY WAY WAY overloaded right now.  Huge queue of
> builds.   Plus, something seems to be wrong as "maven latest" is pointing
> at a 2.2.x version of Maven on a couple nodes, not 3.0.x.  Thus, the deploy
> build failed due to a maven version issue.   I'm forcing it to Maven 3.0.4
> and hit the "build now", but the queue is very large.   May take a while.
>
> Dan
>
>
>
> >
> > regards, aki
> >
> >
> >
> > 2013/5/23 srinivas thallapalli <sr...@gmail.com>
> >
> >> Hi Aki,
> >>
> >> On JIRA I can see that the fix for this is available 2.7.6. So I tried
> with
> >> Snapshot apache-cxf-2.7.6-20130522.112333-11.zip, but gives the same
> >> exception. I hope the fix is not available in this snapshot.
> >> Could you please let me know which snapshot I can take?
> >>
> >> Thanks
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096p5728140.html
> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >>
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>

Re: Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Posted by Daniel Kulp <dk...@apache.org>.
On May 23, 2013, at 4:49 AM, Aki Yoshida <el...@gmail.com> wrote:

> Hi Srinivas,
> 
> the build ran successfully yesterday with
> https://builds.apache.org/job/CXF-2.7.x/221/
> Build #221 (May 22, 2013 6:14:25 PM)
> 
> but this build result didn't seem to have been pushed to the nexus repo.
> 
> the one you downloaded which is still the latest one in the repo is
> from earlier yesterday
> apache-cxf-2.7.6-20130522.112333-11.zip Wed May 22 11:23:43 UTC 2013
> 
> so this does not have the fix.
> 
> maybe some temporary problem and we probably need to wait a little bit.

ASF Jenkins seems to be WAY WAY WAY overloaded right now.  Huge queue of builds.   Plus, something seems to be wrong as "maven latest" is pointing at a 2.2.x version of Maven on a couple nodes, not 3.0.x.  Thus, the deploy build failed due to a maven version issue.   I'm forcing it to Maven 3.0.4 and hit the "build now", but the queue is very large.   May take a while.

Dan



> 
> regards, aki
> 
> 
> 
> 2013/5/23 srinivas thallapalli <sr...@gmail.com>
> 
>> Hi Aki,
>> 
>> On JIRA I can see that the fix for this is available 2.7.6. So I tried with
>> Snapshot apache-cxf-2.7.6-20130522.112333-11.zip, but gives the same
>> exception. I hope the fix is not available in this snapshot.
>> Could you please let me know which snapshot I can take?
>> 
>> Thanks
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096p5728140.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>> 

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Re: Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Posted by Aki Yoshida <el...@gmail.com>.
Hi Srinivas,

the build ran successfully yesterday with
https://builds.apache.org/job/CXF-2.7.x/221/
Build #221 (May 22, 2013 6:14:25 PM)

but this build result didn't seem to have been pushed to the nexus repo.

the one you downloaded which is still the latest one in the repo is
from earlier yesterday
apache-cxf-2.7.6-20130522.112333-11.zip Wed May 22 11:23:43 UTC 2013

so this does not have the fix.

maybe some temporary problem and we probably need to wait a little bit.

regards, aki



2013/5/23 srinivas thallapalli <sr...@gmail.com>

> Hi Aki,
>
> On JIRA I can see that the fix for this is available 2.7.6. So I tried with
> Snapshot apache-cxf-2.7.6-20130522.112333-11.zip, but gives the same
> exception. I hope the fix is not available in this snapshot.
> Could you please let me know which snapshot I can take?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096p5728140.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Re: Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Posted by srinivas thallapalli <sr...@gmail.com>.
Hi Aki,

On JIRA I can see that the fix for this is available 2.7.6. So I tried with
Snapshot apache-cxf-2.7.6-20130522.112333-11.zip, but gives the same
exception. I hope the fix is not available in this snapshot.
Could you please let me know which snapshot I can take?

Thanks



--
View this message in context: http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096p5728140.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Posted by Aki Yoshida <el...@gmail.com>.
Hi Srinivas,
we need to fix this.

created CXF-5032.

thanks.
regards, aki


2013/5/22 Aki Yoshida <el...@gmail.com>

> it looks like the code for soap 1.2 handling is missing in the current
> code.
> i'll take a look at it to see what's happening.
> regards, aki
>
>
> 2013/5/22 srinivas thallapalli <sr...@gmail.com>
>
>> Hello,
>>
>> I am trying to invoke a service which uses SOAP1.2 with below CXF client
>> code but it fails with exception
>> while creating the dynamic client object. I have attached the wsdl file
>> for
>> reference here  employeeservice.wsdl
>> <http://cxf.547215.n5.nabble.com/file/n5728096/employeeservice.wsdl>  .
>> can
>> anybody please help on this?
>>
>> - Thanks
>>
>> *Exception in thread "main" java.lang.UnsupportedOperationException: Only
>> document-style SOAP 1.1 http are supported for auto-selection of endpoint;
>> none were found.*
>>
>>
>>
>> public class CXFClient {
>>
>>         public static void invokeDynamicClient() throws Exception {
>>
>>                 System.out.println("Executing Dynamic Client.......");
>>         JaxWsDynamicClientFactory dcf =
>> JaxWsDynamicClientFactory.newInstance();
>>                 //client to be created at application level
>>                 Client client =
>> dcf.createClient("http://localhost:8080/EmployeeServiceDataService5?WSDL
>> ");
>>         Object[] response = client.invoke("getEmployeeDetails", 2);
>>                 System.out.println(response[0]);
>>                 client.destroy();
>>         }
>>
>>     public static void main(String args[]) throws Exception {
>>         invokeDynamicClient();
>>     }
>> }
>>
>>
>>
>> --
>> View this message in context:
>> http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>
>

Re: Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Posted by srinivas thallapalli <sr...@gmail.com>.
Thanks Aki. I am using latest CXF i,e 2.7.5



--
View this message in context: http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096p5728109.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Help required on CXF dynamic client Fails to invoke SOAP1.2 service

Posted by Aki Yoshida <el...@gmail.com>.
it looks like the code for soap 1.2 handling is missing in the current code.
i'll take a look at it to see what's happening.
regards, aki


2013/5/22 srinivas thallapalli <sr...@gmail.com>

> Hello,
>
> I am trying to invoke a service which uses SOAP1.2 with below CXF client
> code but it fails with exception
> while creating the dynamic client object. I have attached the wsdl file for
> reference here  employeeservice.wsdl
> <http://cxf.547215.n5.nabble.com/file/n5728096/employeeservice.wsdl>  .
> can
> anybody please help on this?
>
> - Thanks
>
> *Exception in thread "main" java.lang.UnsupportedOperationException: Only
> document-style SOAP 1.1 http are supported for auto-selection of endpoint;
> none were found.*
>
>
>
> public class CXFClient {
>
>         public static void invokeDynamicClient() throws Exception {
>
>                 System.out.println("Executing Dynamic Client.......");
>         JaxWsDynamicClientFactory dcf =
> JaxWsDynamicClientFactory.newInstance();
>                 //client to be created at application level
>                 Client client =
> dcf.createClient("http://localhost:8080/EmployeeServiceDataService5?WSDL
> ");
>         Object[] response = client.invoke("getEmployeeDetails", 2);
>                 System.out.println(response[0]);
>                 client.destroy();
>         }
>
>     public static void main(String args[]) throws Exception {
>         invokeDynamicClient();
>     }
> }
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Help-required-on-CXF-dynamic-client-Fails-to-invoke-SOAP1-2-service-tp5728096.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>