jungleeforce / jungleeSuperTramp

Here you will find all the code that is available in the blog http://jungleeforce.wordpress.com
1 stars 1 forks source link

Error: While generating Stub class #2

Open sushantchavan opened 11 years ago

sushantchavan commented 11 years ago

Hi,

Let me start off by thanking you for creating such a fantastic project.

I get a compile error when I try to generate the class from WSDL. Salesforce doesn't recognize the String Array for endpoints in the invoke method.

jungleeforce commented 11 years ago

Hi Sushant, Thanks for taking a look at my blog.

Can you please let me know the exact error message that you're getting? Also you may also try copy pasting the stub class in your org, assuming you have created theclass with the webservice method prior to that.

sushantchavan commented 11 years ago

This is the error I am getting:

Error: addPDFStub Error: Method does not exist or incorrect signature: WebServiceCallout.invoke(addPDFStub.AddPdfToRecord, addPDFStub.addPDF_element, MAP<String,addPDFStub.addPDFResponse_element>, LIST) at 79:13

I am doing this in Sandbox

jungleeforce commented 11 years ago

Hi, Can you please check your edition ?Webservices are not allowed in Professional edition, not 100% sure though. I was able to save the same code in my developer org. Also, I would request you to try it in your Developer edition. I am still looking into this issues, will keep you updated on this.

sushantchavan commented 11 years ago

Hi,

Thanks for the quick response.I have an enterprise edition. Let me try it in the developer addition

Thanks, Sushant

Regards, Sushant Chavan ☎ +91 9920229852 ✉ sushantchavan111@gmail.com Profile: [image: Facebook] http://www.facebook.com/sushant.chavan [image: LinkedIn] http://www.linkedin.com/profile/view?id=48350678 [image: Twitter] http://twitter.com/Csushant Ping: [image: Google Talk] sushantchavan111@gmail.com [image: Skype] sushant.chavan [image: MSN]Sushant.Chavan@live.in

On Wed, May 29, 2013 at 5:02 PM, Sam notifications@github.com wrote:

Hi, Can you please check your edition ?Webservices are not allowed in Professional edition, not 100% sure though. I was able to save the same code in my developer org. Also, I would request you to try it in your Developer edition. I am still looking into this issues, will keep you updated on this.

— Reply to this email directly or view it on GitHubhttps://github.com/jungleeforce/jungleeSuperTramp/issues/2#issuecomment-18610353 .

sushantchavan commented 11 years ago

Hi Sam,

Well my production environment environment doesnt let me create an Apex class directly. Let me know if you need any help sorting this out.

Thanks, Sushant

jungleeforce commented 11 years ago

Hi Sushant, Yes, one cannot create a apex class / trigger directly in production environment. You can create your own developer edition account by going here www.developer.force.com, you will see a "Join Now" button on that page. Could you please validate if you're getting this error in the developer edition as well? I have not worked on enterprise edition, but anyways I am still investigating this.

sushantchavan commented 11 years ago

Hi Sam,

Tried it on Developer edition as well. Doesnt work :(

Thanks, Sushant

sushantchavan commented 11 years ago

Hi Sam,

I used the VisualForce Email Template to accomplish this and it worked for me. The only draw back is one can only use it for 3 Standard Objects (Contact, Lead, User) and their related lists.

But I feel that your solution has a much wider usability. Let me know if you require any inputs or help for this. Happy to collaborate.

Thanks, Sushant

jungleeforce commented 11 years ago

Hi Sushant,

I don't understand why you're unable to save the class, that too in the developer edition. The webserviceCallout.invoke method's signature is just fine, because I am able to save the same stub class without any modification in another org. I will check this on the developer forum, lets see if we can find some solution there. BTW, did you try just pasting the code directly in org and saving rather than generating it from the WSDL?