Maximo Wire - The IBM Maximo Help & Discussion Forum
February 08, 2012, 04:19:47 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Help with web service client  (Read 2642 times)
0 Members and 2 Guests are viewing this topic.
martinjamesd
Newbie
*

Karma: -1
Posts: 1


View Profile Email
« on: May 31, 2009, 05:45:14 pm »

In Maximo 6.2.4 I have created an External System, EXTSYSPERSON, with an Inbound and Outbound Interface, MXPERSONInterface, defined and enabled. The Interface, MXPERSONInterface, has two Integration Points defined, MXPERSONIN, and MXPERSONOUT. The web service has been deployed for the Interface. The web service was tested successfully using INTCLIENT. I am trying to write a client using C# but am not sure how to call the web service based on the stub created using wsdl. Below are the schema and wsdl from the Maximo interface as well as the .NET class created using wsdl. In the ,NET class I don't really see a method to call to pass in the xml.

The Schema for the service is
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.mro.com/mx/integration" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://www.mro.com/mx/integration">
  <xsd:include schemaLocation="http://10.4.255.172/meaweb/schema/IntegrationObjects/MXPERSON.xsd" />
  <xsd:complexType name="MXPERSONInterface">
    <xsd:complexContent>
      <xsd:extension base="MXNotifyInterface">
        <xsd:sequence>
          <xsd:element name="Content" type="MXPERSON" />
        </xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="MXPERSONInterface" type="MXPERSONInterface" />
</xsd:schema>

and the wsdl is

Code:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mxws="http://www.mro.com/mx/wsdl" xmlns:mxint="http://www.mro.com/mx/integration" targetNamespace="http://www.mro.com/mx/wsdl" name="MXPERSONInterface">
  <types>
    <xsd:schema>
      <xsd:import namespace="http://www.mro.com/mx/integration" schemaLocation="http://10.4.255.172/meaweb/schema/Interfaces/MXPERSONInterface.xsd" />
    </xsd:schema>
  </types>
  <message name="MXPERSONInterface">
    <part name="input" element="mxint:MXPERSONInterface" />
  </message>
  <message name="MXPERSONInterfaceResponse" />
  <portType name="MXPERSONInterfacePortType">
    <operation name="processDocument">
      <input message="mxws:MXPERSONInterface" />
      <output message="mxws:MXPERSONInterfaceResponse" />
    </operation>
  </portType>
  <binding name="MXPERSONInterfaceBinding" type="mxws:MXPERSONInterfacePortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <operation name="processDocument">
      <soap:operation soapAction="" style="document" />
      <input>
        <soap:body use="literal" />
      </input>
      <output>
        <soap:body use="literal" />
      </output>
    </operation>
  </binding>
  <service name="MXPERSONInterface">
    <port name="MXPERSONInterfacePort" binding="mxws:MXPERSONInterfaceBinding">
      <soap:address location="http://10.4.255.172/meaweb/services/MXPERSONInterface" />
    </port>
  </service>
</definitions>

I have attached the C# class file generated using the wsdl tool. I don't see a method
that could be called to pass in a PERSON or retrieve a PERSON.
Logged
kishjtk@charter.net
Newbie
*

Karma: -1
Posts: 2


View Profile Email
« Reply #1 on: December 18, 2009, 06:00:57 am »

did you ever get this working?
you could try using AXIS and wsdl2Java to generate stubs that might make it clearer. I have done that in the past.
Logged
vijet
Jr. Member
**

Karma: 5
Posts: 56



View Profile Email
« Reply #2 on: February 05, 2011, 03:02:02 am »

Hi Guys,

I am trying something similar to the question asked... Can anybody help he out here. I am stuck in calling the webservice from c#. Not sure how to pass the xml file generated.

Thanks
Vijet
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!