Announcement Announcement Module
Collapse
No announcement yet.
correct usage of URIEndpointMapping Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • correct usage of URIEndpointMapping

    dear all

    I'm evaluating different approaches to do an endpoint mapping. Therefore, I'm checking out the URIEndpointMapping which I seem not to use correctly.

    Here's what I do.

    I put this into my spring-ws-servlet.xml:
    Code:
    <bean id="endpointMapping"
    		class="org.springframework.ws.server.endpoint.mapping.UriEndpointMapping">
    		<description>
    			The SimpleActionEndpointMapping is meant to be used in a
    			standard Spring application context. It maps actions to
    			endpoints via an exposed mappings property
    		</description>
    		<property name="mappings">
    			<props>
    				<prop
    					key="h**p://localhost:14480/myService/dService">
    					dEndpoint
    				</prop>
    				<prop
    					key="h**p://localhost:14480/myService/udService">
    					udEndpoint
    				</prop>
    			</props>
    		</property>
    	</bean>
    In my WSDL, I use the following code:
    Code:
    <service name="Service">
    
    		<port name="dPort" binding="tns:dBinding">
    			<soap:address
    				location="h**p://localhost:8080/myService/dService" />
    		</port>
    		<port name="udPort" binding="tns:udBinding">
    			<soap:address
    				location="h**p://localhost:8080/myService/udService" />
    		</port>
    	</service>
    Note: the different port numbers are intentionally as I'm using monitoring within eclipse to see what traffic goes over the wire.

    In the calling code, I do the following:
    Code:
    ....
    response = (JAXBElement<ResponseType>) getWebServiceTemplate().marshalSendAndReceive(serviceURL, type);
    ...
    where the serviceURL corresponds to h**p://localhost:14480/myService/dService for example.

    The error that comes is an Error 404 not found. What am I doing wrong? Any ideas or hints?

    Regards,
    rox

  • #2
    Does noone have an idean on this?

    Thanks in advance.

    Comment

    Working...
    X