For servicemix-http to be able to expose a WSDL on a consumer endpoint,
the target endpoint must be activated before the consumer.  So try changing
the order of your endpoints.

What do you mean by "I just wanted teh httpendpointing consumer behaviors
like
httpconnector" ?

On 8/8/06, yangf <[EMAIL PROTECTED]> wrote:


Hi Guillaume,

After I added 'soap="true"' into httpendpoing provider, the provider
works.

I tried adjust soapAction in saajBinding, it still does not work. any idea
on it?

In addition, I attempted to use servicemix-http consumer to replace
httpConnector. but it failed . here is my configuration file
==
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";
         xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:foo="http://servicemix.org/demo/";>

  <!-- the JBI container -->
  <sm:container id="jbi"
                useMBeanServer="true"
                createMBeanServer="true"
                dumpStats="true"
                statsInterval="10">

        <sm:activationSpecs>




            <sm:activationSpec>
                                <sm:component>
                                        <http:component>
                                                <http:endpoints>
                                        <http:endpoint
service="foo:CatalogWebServiceReceiver"
endpoint="catalogWebServiceReceiverEP"

                                                
targetService="foo:CatalogWebService"
                                                role="consumer"
                                                soap="true"
                                        locationURI="
http://L71037263.us.ray.com:8912"; />
                                        <http:endpoint
service="foo:CatalogWebService"

endpoint="catalogWebServiceEP"

role="provider"

                                                                                    
soap="true"

locationURI="http://138.125.32.77:7001/mdf/CatalogWebService";

wsdlResource="http://138.125.32.77:7001/mdf/CatalogWebService?WSDL"; />

                                </http:endpoints>
                                        </http:component>
                                </sm:component>
                        </sm:activationSpec>


        </sm:activationSpecs>
  </sm:container>

</beans>

==

error log
===

15:37:14,378 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=ManagementContext
15:37:14,428 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=EnvironmentContext
15:37:14,438 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=Registry
15:37:14,458 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=DefaultBroker
15:37:14,588 | INFO  | main       | JBIContainer             |
mix.jbi.container.JBIContainer 1008 | Activating component for:
[container=ServiceMix,name=#SubscriptionManager#] with service: null
component: [EMAIL PROTECTED]
15:37:14,598 | INFO  | main       | ComponentMBeanImpl       |
i.framework.ComponentMBeanImpl  184 | Initializing component:
#SubscriptionManager#
15:37:14,738 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=InstallationService
15:37:14,748 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=DeploymentService
15:37:14,758 | INFO  | main       | DeploymentService        |
bi.framework.DeploymentService  683 | Restoring service assemblies
15:37:14,758 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=AutoDeploymentService
15:37:14,778 | DEBUG | main       | AutoDeploymentService    |
ramework.AutoDeploymentService  564 | State file doesn't exist:
C:\incubating-
servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\install.xml
15:37:14,778 | DEBUG | main       | AutoDeploymentService    |
ramework.AutoDeploymentService  564 | State file doesn't exist:
C:\incubating-
servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\deploy.xml
15:37:14,778 | DEBUG | main       | ManagementContext        |
i.management.ManagementContext  570 | Registering system service:
org.apache.servicemix:ContainerName=ServiceMix
,Type=SystemService,Name=AdminCommandsService
15:37:14,858 | INFO  | main       | JBIContainer             |
mix.jbi.container.JBIContainer  538 | ServiceMix JBI Container
(http://servicemix.org/) name: ServiceMix running version: 3.0-SNAPSHOT
15:37:14,889 | INFO  | main       | JBIContainer             |
mix.jbi.container.JBIContainer 1008 | Activating component for:
[container=ServiceMix,name=ID:L71037263-2368-1155065833647-0:0] with
service: null component:
[EMAIL PROTECTED]
15:37:14,889 | INFO  | main       | ComponentMBeanImpl       |
i.framework.ComponentMBeanImpl  184 | Initializing component:
ID:L71037263-2368-1155065833647-0:0
15:37:14,899 | DEBUG | main       | HttpSpringComponent      |
emix.common.AsyncBaseLifeCycle  103 | Initializing component
15:37:15,049 | DEBUG | main       | JBIContainer             |
mix.jbi.container.JBIContainer  654 | No transaction manager found from
naming context: remaining name: java:appserver/TransactionManager
15:37:15,139 | DEBUG | main       | HttpSpringComponent      |
emix.common.AsyncBaseLifeCycle  110 | Component initialized
15:37:15,149 | DEBUG | main       | HttpSpringComponent      |
emix.common.AsyncBaseLifeCycle  195 | Starting component
15:37:15,169 | INFO  | main       | log                      |
rg.slf4j.impl.JCLLoggerAdapter  216 | Logging to
[EMAIL PROTECTED] via org.mortbay.log.Slf4jLog
15:37:15,169 | DEBUG | main       | HttpSpringComponent      |
e.servicemix.soap.SoapEndpoint  240 | Retrieving proxied endpoint
definition
15:37:15,169 | DEBUG | main       | HttpSpringComponent      |
e.servicemix.soap.SoapEndpoint  257 | Could not retrieve endpoint for
targetService
15:37:15,169 | DEBUG | main       | HttpSpringComponent      |
e.servicemix.soap.SoapEndpoint  272 | Could not retrieve endpoint for
service/endpoint
15:37:15,239 | INFO  | main       | log                      |
rg.slf4j.impl.JCLLoggerAdapter  216 | jetty 6.0.0beta15
15:37:15,309 | DEBUG | main       | ServerManager            |
erverManager$ThreadPoolWrapper  369 | Dispatching job:
[EMAIL PROTECTED]
15:37:15,309 | INFO  | main       | log                      |
rg.slf4j.impl.JCLLoggerAdapter  216 | Started SelectChannelConnector @
L71037263.us.ray.com:8912
15:37:15,840 | DEBUG | main       | HttpSpringComponent      |
e.servicemix.http.HttpEndpoint  146 | Port for service/endpoint could not
be
found
15:37:15,840 | DEBUG | main       | ComponentContextImpl     |
framework.ComponentContextImpl  133 | Component:
ID:L71037263-2368-1155065833647-0:0 activated endpoint:
{http://servicemix.org/demo/}CatalogWebService : catalogWebServiceEP
15:37:15,840 | DEBUG | main       | HttpSpringComponent      |
ervicemix.common.BaseComponent   72 | Querying service description for
ServiceEndpoint[service={
http://servicemix.org/demo/}CatalogWebService,endpoint=catalogWebServiceEP
]
15:37:15,840 | DEBUG | main       | HttpSpringComponent      |
ervicemix.common.BaseComponent   80 | No description found for
{http://servicemix.org/demo/}CatalogWebService:catalogWebServiceEP
15:37:15,840 | DEBUG | main       | EndpointRegistry         |
jbi.framework.EndpointRegistry  239 | Endpoint
ServiceEndpoint[service={
http://servicemix.org/demo/}CatalogWebService,endpoint=catalogWebServiceEP
]
has no service description
15:37:15,880 | DEBUG | main       | HttpSpringComponent      |
emix.common.AsyncBaseLifeCycle  201 | Component started
15:37:15,880 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-
servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\install
for new or modified archives
15:37:15,880 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\deploy
for new or modified archives
15:37:20,567 | DEBUG | btpool0-0 - Acceptor0 SelectChannelConnector @
L71037263.us.ray.com:8912 | ServerManager            |
erverManager$ThreadPoolWrapper  369 | Dispatching job:
[EMAIL PROTECTED],io=0,w=true,b=0|0]
15:37:20,807 | DEBUG | btpool0-0 - Acceptor0 SelectChannelConnector @
L71037263.us.ray.com:8912 | ServerManager            |
erverManager$ThreadPoolWrapper  369 | Dispatching job:
[EMAIL PROTECTED],io=1,w=true,b=0|0]
15:37:25,894 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-
servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\install
for new or modified archives
15:37:25,894 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\deploy
for new or modified archives
15:37:35,889 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-
servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\install
for new or modified archives
15:37:35,889 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\deploy
for new or modified archives
15:37:45,883 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-
servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\install
for new or modified archives
15:37:45,883 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\deploy
for new or modified archives
15:37:55,887 | DEBUG | Timer-2    | AutoDeploymentService    |
ramework.AutoDeploymentService  484 | Monitoring directory
C:\incubating-
servicemix-3.0-SNAPSHOT\examples\http-binding\rootDir\install
for new or modified archives

=====

from client console
====
     [java] java.io.IOException: Server returned HTTP response code: 400
for
URL: http://L71037263.us.ray.com:8912
     [java]     at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(
HttpURLConnection.java:814)
     [java]     at HttpClient.main(Unknown Source)
     [java] Exception in thread "main"
     [java] Java Result: 1

=======

In the try, I just wanted teh httpendpointing consumer behaviors like
httpconnector, not expose a web service over bus. just wonder if I can do
it? anything wrong I did in my configuration?

Thank you very very much for your help

-yangf
--
View this message in context:
http://www.nabble.com/External-Webservices-binding-%28the-answer%29-tf1971463.html#a5714059
Sent from the ServiceMix - User forum at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to