You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "John F. Berry" <bo...@yahoo.com.INVALID> on 2019/11/14 21:51:45 UTC

CXF soap call complains of missing portType?

I have used the wsdl2java to generate my classes off of a vendor provided wsdl.Perhaps it is a malformed cxf endpoint.. but it currently is just complaining of the portType.the -impl is under extraargs in the plug in.. and no change to the error.. other than giving me hundreds of warnings about services in the wsdl that cannot be unwrapped.  There's hundreds of services in this wsdl.
I've seen many unanswered threads in a websearch, so perhaps the right question is not being asked.I am using cxf to producw a SOAP request from a vendor provided wsdl.. what could I be missing?
The publicly available wsdl is here:
https://community.workday.com/sites/default/files/file-hosting/productionapi/Resource_Management/v33.1/Resource_Management.wsdl 
and I am attempting to call the "Put_Procurement_Document_Attachment" request within that.  I am attempting to send this to a mock service with SoapUI on a test server like this:
.to("cxf://http://testserver:8088/mockResource_ManagementBinding?serviceClass=workday.com.bsvc.PutProcurementDocumentAttachmentRequestType&wsdlURL=/wsdl/Resource_Management.wsdl")

Any flags jump out to anyone?Thanks!



Re: CXF soap call complains of missing portType?

Posted by Colm O hEigeartaigh <co...@apache.org>.
Could you put together a test-case using CXF that shows the problem?

Colm.

On Mon, Nov 18, 2019 at 10:32 PM John F. Berry <bo...@yahoo.com.invalid>
wrote:

>  org.apache.cxf.service.factory.ServiceConstructionException: Could not
> find portType named
> {urn:com.workday/bsvc/Resource_Management}PutProcurementDocumentAttachmentRequestTypePortType
> An exception occured while executing the Java class. Could not find
> portType named
> {urn:com.workday/bsvc/Resource_Management}PutProcurementDocumentAttachmentRequestTypePortType
>
>     On Monday, November 18, 2019, 03:32:28 PM EST, John F. Berry
> <bo...@yahoo.com.invalid> wrote:
>
>   a WSDL online analyzer warned of this vendor's "snake case".. and I
> noticed that all the classes made from this WSDL are missing the "_" in all
> the names... except that maven claims it cannot find "Resource_Management"
> porttype.. could it be looking for the underscore in the name it
> eliminated???
>
>     On Friday, November 15, 2019, 1:41:35 PM EST, John F. Berry
> <bo...@yahoo.com.invalid> wrote:
>
>  In my camel project, I have used the wsdl2java to generate my classes off
> of a vendor provided wsdl.  Perhaps it is a malformed cxf endpoint.. but it
> currently is just complaining of the portType.the -impl is under extraargs
> in the plug in.. and no change to the error.. other than giving me hundreds
> of warnings about services in the wsdl that cannot be unwrapped.  There's
> hundreds of services in this wsdl.I've seen many unanswered threads in a
> websearch, so perhaps the right question is not being asked.I am using cxf
> to produce a SOAP request from a vendor provided wsdl.. what could I be
> missing?
> The publicly available wsdl is here:
>
> https://community.workday.com/sites/default/files/file-hosting/productionapi/Resource_Management/v33.1/Resource_Management.wsdl
> and I am attempting to call the "Put_Procurement_Document_Attachment"
> request within that.  I am attempting to send this to a mock service with
> SoapUI on a test server like this:
> .to("cxf://
> http://testserver:8088/mockResource_ManagementBinding?serviceClass=workday.com.bsvc.PutProcurementDocumentAttachmentRequestType&wsdlURL=/wsdl/Resource_Management.wsdl
> ")
>
>  Other people in my shop have complained that something's just not right
> with this WSDL....  I thought I'd upload it to an online checker to verify
> complaince... It mostly checks out (besides all the snake case).. but it
> also reported that this is a SOAP 1.1 WDSL.. Could this be my problem?
>
>
>
> Any flags jump out to anyone?Thanks!
>
>

Re: CXF soap call complains of missing portType?

Posted by "John F. Berry" <bo...@yahoo.com.INVALID>.
 org.apache.cxf.service.factory.ServiceConstructionException: Could not find portType named {urn:com.workday/bsvc/Resource_Management}PutProcurementDocumentAttachmentRequestTypePortType
An exception occured while executing the Java class. Could not find portType named {urn:com.workday/bsvc/Resource_Management}PutProcurementDocumentAttachmentRequestTypePortType

    On Monday, November 18, 2019, 03:32:28 PM EST, John F. Berry <bo...@yahoo.com.invalid> wrote:  
 
  a WSDL online analyzer warned of this vendor's "snake case".. and I noticed that all the classes made from this WSDL are missing the "_" in all the names... except that maven claims it cannot find "Resource_Management" porttype.. could it be looking for the underscore in the name it eliminated???

    On Friday, November 15, 2019, 1:41:35 PM EST, John F. Berry <bo...@yahoo.com.invalid> wrote:  
 
 In my camel project, I have used the wsdl2java to generate my classes off of a vendor provided wsdl.  Perhaps it is a malformed cxf endpoint.. but it currently is just complaining of the portType.the -impl is under extraargs in the plug in.. and no change to the error.. other than giving me hundreds of warnings about services in the wsdl that cannot be unwrapped.  There's hundreds of services in this wsdl.I've seen many unanswered threads in a websearch, so perhaps the right question is not being asked.I am using cxf to produce a SOAP request from a vendor provided wsdl.. what could I be missing?
The publicly available wsdl is here:
https://community.workday.com/sites/default/files/file-hosting/productionapi/Resource_Management/v33.1/Resource_Management.wsdl 
and I am attempting to call the "Put_Procurement_Document_Attachment" request within that.  I am attempting to send this to a mock service with SoapUI on a test server like this:
.to("cxf://http://testserver:8088/mockResource_ManagementBinding?serviceClass=workday.com.bsvc.PutProcurementDocumentAttachmentRequestType&wsdlURL=/wsdl/Resource_Management.wsdl")

 Other people in my shop have complained that something's just not right with this WSDL....  I thought I'd upload it to an online checker to verify complaince... It mostly checks out (besides all the snake case).. but it also reported that this is a SOAP 1.1 WDSL.. Could this be my problem?



Any flags jump out to anyone?Thanks!

      

Re: CXF soap call complains of missing portType?

Posted by "John F. Berry" <bo...@yahoo.com.INVALID>.
 a WSDL online analyzer warned of this vendor's "snake case".. and I noticed that all the classes made from this WSDL are missing the "_" in all the names... except that maven claims it cannot find "Resource_Management" porttype.. could it be looking for the underscore in the name it eliminated???

    On Friday, November 15, 2019, 1:41:35 PM EST, John F. Berry <bo...@yahoo.com.invalid> wrote:  
 
 In my camel project, I have used the wsdl2java to generate my classes off of a vendor provided wsdl.  Perhaps it is a malformed cxf endpoint.. but it currently is just complaining of the portType.the -impl is under extraargs in the plug in.. and no change to the error.. other than giving me hundreds of warnings about services in the wsdl that cannot be unwrapped.  There's hundreds of services in this wsdl.I've seen many unanswered threads in a websearch, so perhaps the right question is not being asked.I am using cxf to produce a SOAP request from a vendor provided wsdl.. what could I be missing?
The publicly available wsdl is here:
https://community.workday.com/sites/default/files/file-hosting/productionapi/Resource_Management/v33.1/Resource_Management.wsdl 
and I am attempting to call the "Put_Procurement_Document_Attachment" request within that.  I am attempting to send this to a mock service with SoapUI on a test server like this:
.to("cxf://http://testserver:8088/mockResource_ManagementBinding?serviceClass=workday.com.bsvc.PutProcurementDocumentAttachmentRequestType&wsdlURL=/wsdl/Resource_Management.wsdl")

 Other people in my shop have complained that something's just not right with this WSDL....  I thought I'd upload it to an online checker to verify complaince... It mostly checks out (besides all the snake case).. but it also reported that this is a SOAP 1.1 WDSL.. Could this be my problem?



Any flags jump out to anyone?Thanks!

     

CXF soap call complains of missing portType?

Posted by "John F. Berry" <bo...@yahoo.com.INVALID>.
In my camel project, I have used the wsdl2java to generate my classes off of a vendor provided wsdl.  Perhaps it is a malformed cxf endpoint.. but it currently is just complaining of the portType.the -impl is under extraargs in the plug in.. and no change to the error.. other than giving me hundreds of warnings about services in the wsdl that cannot be unwrapped.  There's hundreds of services in this wsdl.I've seen many unanswered threads in a websearch, so perhaps the right question is not being asked.I am using cxf to produce a SOAP request from a vendor provided wsdl.. what could I be missing?
The publicly available wsdl is here:
https://community.workday.com/sites/default/files/file-hosting/productionapi/Resource_Management/v33.1/Resource_Management.wsdl 
and I am attempting to call the "Put_Procurement_Document_Attachment" request within that.  I am attempting to send this to a mock service with SoapUI on a test server like this:
.to("cxf://http://testserver:8088/mockResource_ManagementBinding?serviceClass=workday.com.bsvc.PutProcurementDocumentAttachmentRequestType&wsdlURL=/wsdl/Resource_Management.wsdl")

 Other people in my shop have complained that something's just not right with this WSDL....  I thought I'd upload it to an online checker to verify complaince... It mostly checks out (besides all the snake case).. but it also reported that this is a SOAP 1.1 WDSL.. Could this be my problem?



Any flags jump out to anyone?Thanks!

    

Re: camel restart

Posted by Tadayoshi Sato <sa...@gmail.com>.
Yes.

On Tue, Nov 26, 2019 at 12:39 PM Bing Lu <mf...@yahoo.com.invalid> wrote:

>  So i can do sth like the following,assuming the JmsException stops the
> route? thanks
>
> onException("JmsException.class").to("controlbus:route?routeId=id1&action=start");
>
>     On Monday, November 25, 2019, 10:08:56 PM EST, Tadayoshi Sato <
> sato.tadayoshi@gmail.com> wrote:
>
>  You may use Control Bus EIP to start/stop routes from another route.
> https://camel.apache.org/components/latest/controlbus-component.html
> You may also use JMX to manually start/stop routes. With Hawtio
> https://hawt.io this would be easier.
> https://camel.apache.org/manual/latest/jmx.html
>
> On Tue, Nov 26, 2019 at 9:37 AM Bing Lu <mf...@yahoo.com.invalid> wrote:
>
> >  Hi, is there a way to restart the app in case a route was stopped for
> > some reason? thanks
>
>
>
> --
> Tadayoshi Sato
>



-- 
Tadayoshi Sato

Re: camel restart

Posted by Bing Lu <mf...@yahoo.com.INVALID>.
i am using sjmsbatch component and the route processing the mq messages is stopped due to some mq related exception sometimes

Sent from Yahoo Mail on Android 
 
  On Tue, Nov 26, 2019 at 3:21 PM, WEIQUAN YUAN<we...@gmail.com> wrote:   with my experience with camel routing, exception thrown wont' cause the
route to stop. The routing is still running behind. could you please
explain in more detail in what case, your route will stopped need
restarting?

On Mon, Nov 25, 2019 at 10:39 PM Bing Lu <mf...@yahoo.com.invalid> wrote:

>  So i can do sth like the following,assuming the JmsException stops the
> route? thanks
>
> onException("JmsException.class").to("controlbus:route?routeId=id1&action=start");
>
>    On Monday, November 25, 2019, 10:08:56 PM EST, Tadayoshi Sato <
> sato.tadayoshi@gmail.com> wrote:
>
>  You may use Control Bus EIP to start/stop routes from another route.
> https://camel.apache.org/components/latest/controlbus-component.html
> You may also use JMX to manually start/stop routes. With Hawtio
> https://hawt.io this would be easier.
> https://camel.apache.org/manual/latest/jmx.html
>
> On Tue, Nov 26, 2019 at 9:37 AM Bing Lu <mf...@yahoo.com.invalid> wrote:
>
> >  Hi, is there a way to restart the app in case a route was stopped for
> > some reason? thanks
>
>
>
> --
> Tadayoshi Sato
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Weiquan Yuan
Located in Ottawa, Canada
  

Re: camel restart

Posted by WEIQUAN YUAN <we...@gmail.com>.
with my experience with camel routing, exception thrown wont' cause the
route to stop. The routing is still running behind. could you please
explain in more detail in what case, your route will stopped need
restarting?

On Mon, Nov 25, 2019 at 10:39 PM Bing Lu <mf...@yahoo.com.invalid> wrote:

>  So i can do sth like the following,assuming the JmsException stops the
> route? thanks
>
> onException("JmsException.class").to("controlbus:route?routeId=id1&action=start");
>
>     On Monday, November 25, 2019, 10:08:56 PM EST, Tadayoshi Sato <
> sato.tadayoshi@gmail.com> wrote:
>
>  You may use Control Bus EIP to start/stop routes from another route.
> https://camel.apache.org/components/latest/controlbus-component.html
> You may also use JMX to manually start/stop routes. With Hawtio
> https://hawt.io this would be easier.
> https://camel.apache.org/manual/latest/jmx.html
>
> On Tue, Nov 26, 2019 at 9:37 AM Bing Lu <mf...@yahoo.com.invalid> wrote:
>
> >  Hi, is there a way to restart the app in case a route was stopped for
> > some reason? thanks
>
>
>
> --
> Tadayoshi Sato
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Weiquan Yuan
Located in Ottawa, Canada

Re: camel restart

Posted by Bing Lu <mf...@yahoo.com.INVALID>.
 So i can do sth like the following,assuming the JmsException stops the route? thanks
onException("JmsException.class").to("controlbus:route?routeId=id1&action=start");

    On Monday, November 25, 2019, 10:08:56 PM EST, Tadayoshi Sato <sa...@gmail.com> wrote:  
 
 You may use Control Bus EIP to start/stop routes from another route.
https://camel.apache.org/components/latest/controlbus-component.html
You may also use JMX to manually start/stop routes. With Hawtio
https://hawt.io this would be easier.
https://camel.apache.org/manual/latest/jmx.html

On Tue, Nov 26, 2019 at 9:37 AM Bing Lu <mf...@yahoo.com.invalid> wrote:

>  Hi, is there a way to restart the app in case a route was stopped for
> some reason? thanks



-- 
Tadayoshi Sato
  

Re: camel restart

Posted by Tadayoshi Sato <sa...@gmail.com>.
You may use Control Bus EIP to start/stop routes from another route.
https://camel.apache.org/components/latest/controlbus-component.html
You may also use JMX to manually start/stop routes. With Hawtio
https://hawt.io this would be easier.
https://camel.apache.org/manual/latest/jmx.html

On Tue, Nov 26, 2019 at 9:37 AM Bing Lu <mf...@yahoo.com.invalid> wrote:

>  Hi, is there a way to restart the app in case a route was stopped for
> some reason? thanks



-- 
Tadayoshi Sato

Re: camel restart

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

ControlBus is one way, another way is to "listen" the route, but it
depends of the runtime. With Karaf is pretty easy because easy route is
a service, and you can listen a service.

Via JMX, you can also add a listener on a route.

Regards
JB

On 26/11/2019 01:37, Bing Lu wrote:
>  Hi, is there a way to restart the app in case a route was stopped for some reason? thanks    
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

camel restart

Posted by Bing Lu <mf...@yahoo.com.INVALID>.
 Hi, is there a way to restart the app in case a route was stopped for some reason? thanks    

Re: CXF soap call complains of missing portType?

Posted by "John F. Berry" <bo...@yahoo.com.INVALID>.
 Other people in my shop have complained that something's just not right with this WSDL....  I thought I'd upload it to an online checker to verify complaince... It mostly checks out (besides all the snake case).. but it also reported that this is a SOAP 1.1 WDSL.. I think that's my problem... right?

    On Thursday, November 14, 2019, 4:51:57 PM EST, John F. Berry <bo...@yahoo.com.invalid> wrote:  
 
 I have used the wsdl2java to generate my classes off of a vendor provided wsdl.Perhaps it is a malformed cxf endpoint.. but it currently is just complaining of the portType.the -impl is under extraargs in the plug in.. and no change to the error.. other than giving me hundreds of warnings about services in the wsdl that cannot be unwrapped.  There's hundreds of services in this wsdl.
I've seen many unanswered threads in a websearch, so perhaps the right question is not being asked.I am using cxf to producw a SOAP request from a vendor provided wsdl.. what could I be missing?
The publicly available wsdl is here:
https://community.workday.com/sites/default/files/file-hosting/productionapi/Resource_Management/v33.1/Resource_Management.wsdl 
and I am attempting to call the "Put_Procurement_Document_Attachment" request within that.  I am attempting to send this to a mock service with SoapUI on a test server like this:
.to("cxf://http://testserver:8088/mockResource_ManagementBinding?serviceClass=workday.com.bsvc.PutProcurementDocumentAttachmentRequestType&wsdlURL=/wsdl/Resource_Management.wsdl")

Any flags jump out to anyone?Thanks!