cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
834
Views
0
Helpful
0
Replies

Integration CPSC and CPO

roshan.kumar
Level 1
Level 1

Hey guys. I am Roshan. While working on CPSC-CPO integration I am struck with "Message Routing Exeception" error.  I am trying to connect my CPO through CPSC. While starting the process through SOAPUI software, the process is getting triggered at CPO. But not able to trigger it from CPSC. Following are the steps I have followed , please comment if you see anything missing:

1. Created an transformation 

<?xml version='1.0' ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no" />

<xsl:variable name="lowercase">abcdefghijklmnopqrstuvwxyz</xsl:variable>
<xsl:variable name="uppercase">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>

<xsl:template match="agent-parameter">
<xsl:variable name="element_name" select="translate(name,' ','')"/>
<xsl:variable name="element_value" select="value"/>

<xsl:element name="{$element_name}">
<xsl:value-of select="$element_value" />
</xsl:element>
</xsl:template>

<xsl:template name="commonStyle">
<xsl:element name="Action">
<xsl:attribute name="ClassID">
<xsl:value-of select="/message/task-started/agent-parameter[name='ClassID']/value" />
</xsl:attribute>
<xsl:value-of select="/message/task-started/requisition/requisition-entry/service/name"/>
</xsl:element>
<RequisitionID>
<xsl:value-of select="message/task-started/requisition/requisition-id" />
</RequisitionID>
<RequisitionEntryID>
<xsl:value-of select="message/task-started/requisition/requisition-entry/requisition-entry-id" />
</RequisitionEntryID>
<ChannelID>
<xsl:value-of select="message/@channel-id" />
</ChannelID>
<InitiatorLogin>
<xsl:value-of select="message/task-started/requisition/initiator/login-name" />
</InitiatorLogin>
<InitiatorHomeOU>
<xsl:value-of select="message/task-started/requisition/initiator/home-ou/name" />
</InitiatorHomeOU>
<CustomerLogin>
<xsl:value-of select="message/task-started/requisition/customer/login-name" />
</CustomerLogin>
<CustomerHomeOU>
<xsl:value-of select="message/task-started/requisition/customer/home-ou/name" />
</CustomerHomeOU>
<CustomerFirstName>
<xsl:value-of select="message/task-started/requisition/customer/first-name" />
</CustomerFirstName>
<CustomerLastName>
<xsl:value-of select="message/task-started/requisition/customer/last-name" />
</CustomerLastName>
</xsl:template>

<xsl:template name="dataStyle">
<xsl:for-each
select="/message/task-started/requisition/requisition-entry/data-values/data-value">
<xsl:variable name="element_name" select="translate( name, ' ', '' )" />
<xsl:variable name="element_value">
<xsl:for-each select="value">
<xsl:if test="not(position() = 1)">,</xsl:if>
<xsl:value-of select="." />
</xsl:for-each>
</xsl:variable>

<xsl:if test="not( contains( translate( $element_name, $uppercase, $lowercase ), 'password' ) )">
<xsl:element name="{$element_name}">
<xsl:value-of select="$element_value" />
</xsl:element>
</xsl:if>
</xsl:for-each>
</xsl:template>


<xsl:template match="/">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:StartAddADUser>

<tem:Username>kr1123443</tem:Username>
<!--Optional:-->
<tem:LastName>kumerrar</tem:LastName>
<!--Optional:-->
<tem:FirstName>rrraj</tem:FirstName>
<!--Optional:-->
<tem:Password>pass@word1</tem:Password>
</tem:StartAddADUser>
</soapenv:Body>
</soapenv:Envelope>
</xsl:template>
</xsl:stylesheet>

2. Created an agent 

In agent Outbound adapter is Http/Ws

Inbound adapter is Web service listener 

No transformation for inbound

I have attached outbound properties screenshot above.

3. I have not mapped any outbound request and response parameter , as I am just trying a small process of user creation first and have mapped the user details directly in transformation external message (just for testing). 

4. I have mapped this agent at my service plan.

After all these step when I am ordering a service, I am getting error at Service Link --> View Transaction as "Message Routing Exception". Detailed error is below:

com.newscale.is.core.RoutingException: Routing exception found: HTTP Post Error 500<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The message with Action '''' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring></s:Fault></s:Body></s:Envelope> 

I think probably I am missing out a step. 

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: