• sarathy
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
In my WSDL which I am using I have defined complex type objects with attributes. When the Apex classes get generated, the attributes are not seen in the generated classes.

Here is my wsdl: http://www.ascnet.com/~sarathy/ASARAT.wsdl.

In this WSDL, notice cObject and cForm_ASARAT_Vendor (complex type) objects have a type attribute defined. For my web service to work I need this type attribute set properly in the soap message request. If it is not part of the generated class,
a) how can my get it as part of the generated class? what do I need to adjust in the wsdl?
b) Or can I hand edit the class and add the attribute? If so, how can I do it? what is the syntax?

Thanks
Sarathy
I am a newbee to SF development trying to integrate our product with SF. I want to invoke a web service on a button click. This is what I have done so far:
  • I have added a custom button to Accounts form
  • I have set it up as a On-click javascript type and on-click I am invoking a wrapper class which will invoke the appropriate Apex Webservice class.
  • I have a wsdl which defines the webservice operations
I am trying to generate apex classes from my wsdl. Once I have them generated I can invoke it within the wrapper class.
While one of the namespace gets a class generated, it is giving a compilation error in the other one. As the error message does not have any clear indication, can anyone shed some light on what the issue may be? Feel free to generate from wsdl yourself to check out the error message. Here is a link to the wsdl, I am using: http://www.ascnet.com/~sarathy/CMSSoapService.wsdl
I am a newbee to SF development trying to integrate our product with SF. I want to invoke a web service on a button click. This is what I have done so far:
  • I have added a custom button to Accounts form
  • I have set it up as a On-click javascript type and on-click I am invoking a wrapper class which will invoke the appropriate Apex Webservice class.
  • I have a wsdl which defines the webservice operations
I am trying to generate apex classes from my wsdl. Once I have them generated I can invoke it within the wrapper class.
While one of the namespace gets a class generated, it is giving a compilation error in the other one. As the error message does not have any clear indication, can anyone shed some light on what the issue may be? Feel free to generate from wsdl yourself to check out the error message. Here is a link to the wsdl, I am using: http://www.ascnet.com/~sarathy/CMSSoapService.wsdl