IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Soap-fault

    Posted Fri November 18, 2011 02:35 PM

    Hi

    I have a strange problems
    A team build a WSDL for a service in PHP.

    I use a WSDL for generate document and webservice consummer on webMethods 8.0.
    I created an allias phpAllias for webservice

    For call is : http://phpAllias/soap/ws.php

    After test we deploy on other server for php and webMethods.

    But the wsdl change for php.
    In test is :

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <wsdl:definitions 
    xmlns:impl='http://dev.fr/soap/ws.php' 
    xmlns:intf='http://dev.fr/soap/ws.php'' 
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' 
    xmlns:wsdlsoap='http://schemas.xmlsoap.org/wsdl/soap/' 
    xmlns:xsd='http://www.w3.org/2001/XMLSchema' 
    targetNamespace='http://dev.fr/soap/ws.php''>  
    <wsdl:types>
    <schema elementFormDefault='qualified' 
    xmlns:impl='http://dev.fr/soap/ws.php'' 
    xmlns:intf='http://dev.fr/soap/ws.php'' 
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' 
    xmlns="http://www.w3.org/2001/XMLSchema" 
    targetNamespace='http://dev.fr/soap/ws.php''>
    <element name='init'>

    and after is like this :

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <wsdl:definitions 
    xmlns:impl='http://rec.fr/soap/ws.php' 
    xmlns:intf='http://rec.fr/soap/ws.php'' 
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' 
    xmlns:wsdlsoap='http://schemas.xmlsoap.org/wsdl/soap/' 
    xmlns:xsd='http://www.w3.org/2001/XMLSchema' 
    targetNamespace='http://rec.fr/soap/ws.php''>  
    <wsdl:types>
    <schema elementFormDefault='qualified' 
    xmlns:impl='http://rec.fr/soap/ws.php'' 
    xmlns:intf='http://rec.fr/soap/ws.php'' 
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' 
    xmlns="http://www.w3.org/2001/XMLSchema" 
    targetNamespace='http://rec.fr/soap/ws.php''>
    <element name='init'>

    The difference is :http://rec.fr/soap/ws.php and http://dev.fr/soap/ws.php

    After deployement and test on the second platform i have this error :

    if i use the wsdl with “http://rec.fr/soap/ws.php” and delete Webservice consummer and regenerate it’s work.

    the probleme is on webMethods or on the wsdl?

    thanks for help


    #webMethods
    #soa
    #API-Management


  • 2.  RE: Soap-fault

    Posted Fri November 18, 2011 05:08 PM

    The namespace shouldn’t change for different environments.
    It shouldn’t containt environment specific info either (like: dev)

    The error means: it’s looking for some procedure “init” (maybe in dev namespace), but can’t find it (since the namespace locally was “rec”).


    #soa
    #webMethods
    #API-Management