Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 6 of 6

Thread: Java / SOAP / WSDL

  1. #1
    Junior Member ProxyProdigy's Avatar
    Join Date
    Aug 2007
    Posts
    25

    Post Java / SOAP / WSDL

    I'm EXTREMELY new to ServiceCenter. I have been recently asked to take on the task of creating some Java based applications that will be used to talk to ServiceCenter using WebServices. I have no idea where to begin. Does anyone out there have any example Java code using SOAP? Also, does anyone have the WSDLs for connecting the two? Any help would be greatly appreciated!

    Thanks in advance....

  2. #2
    Junior Member
    Join Date
    Aug 2007
    Posts
    6

    Default

    I'm not a java programmer, but google gives this tutorial which might be of use for you?

    http://java.sun.com/webservices/docs/1.6/tutorial/doc/

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Location
    Belgium, Elsene-Ixelles
    Posts
    16

    Default

    consult the help of your SC Eclipse client and search the HP KB, there are several white papers available which can help you

  4. #4
    Member
    Join Date
    Oct 2006
    Location
    USA
    Posts
    42

    Default

    And for WSDL, you can try

    http://<SC Server name>:<Port number>/ChangeManagement.wsdl

    You can also try IncidentManagement.wsdl, RequestManagement.wsdl, ConfigurationManagement.wsdl, etc.

    Thanks

    Abhijeet
    Last edited by Abhijeet; 2007-09-14 at 17:16.

  5. #5
    Junior Member
    Join Date
    Nov 2006
    Posts
    20

    Cool Use AXIS

    The easiest thing is to use "Apache AXIS", it has a WSDL2JAVA process which will take a WSDL and generate Java code for you on how to talk to that service.
    USe the generated code in your project and you should be good !

    -machoq

  6. #6
    Junior Member
    Join Date
    Dec 2007
    Posts
    3

    Default

    Hi
    I have done WSDLToJS generated Javascript and i am calling a function in that javascript in my customized script ,where i am trying to set the values an array of objects,can any body provide me a sample scirpt to set the array of object,including script which has to be set
    function ArrayOfLocalPlaceValue( )
    {
    this.$$attributes = new Array();
    this.$$xmlNames = new Array();
    this.$$objNames = new Array();
    this.getName = getName;
    this.getXmlName = getXmlName;
    this.setContent = setContent;
    this.addContent = addContent;
    this.getContent = getContent;
    this.isFault = isFault;
    this.$$elementChildren = new Array();
    this.$$name = "ArrayOfLocalPlaceValue";
    this.$$xmlNames[ "ArrayOfLocalPlaceValue" ] = "ArrayOfLocalPlaceValue";
    this.item = new Array(); // of LocalPlaceValue
    this.$$isArrayType = true;
    this.newInstance = function()
    {
    var newLen = this.item.push( new LocalPlaceValue() );
    return this.item[ newLen-1 ];
    }
    this.LocalPlaceValue = this.item;
    this.$$elementChildren.push( "LocalPlaceValue" );
    this.length = function()
    {
    return this.item.length;
    }
    this.$$elementChildren.push( "item" );
    }

    function LocalPlaceValue( )
    {
    this.$$attributes = new Array();
    this.$$xmlNames = new Array();
    this.$$objNames = new Array();
    this.getName = getName;
    this.getXmlName = getXmlName;
    this.setContent = setContent;
    this.addContent = addContent;
    this.getContent = getContent;
    this.isFault = isFault;
    this.$$elementChildren = new Array();
    this.$$name = "LocalPlaceValue";
    this.$$xmlNames[ "LocalPlaceValue" ] = "LocalPlaceValue";
    this.validFor = new TimePeriod();
    this.$$elementChildren.push( "validFor" );
    this.describingSpecificationKey = new EntitySpecificationKey();
    this.$$elementChildren.push( "describingSpecificationKey" );
    this.subGraphId = new xsd_long();
    this.$$elementChildren.push( "subGraphId" );
    this.lastUpdateVersionNumber = new xsd_long();
    this.$$elementChildren.push( "lastUpdateVersionNumber" );
    }
    and i have set the values of ArrayOfLocalPlaceValue in my customized scirpt.
    Thanks
    Dinakar

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts