• agab
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 10
    Replies
Hello,
 
I am making a sforce.connection.remoteFunction call on a Visualforce page.  This works fine with Firefox, but with IE I get the following error: "Type mismatch".  Has anyone experienced this before?
 
Thanks,
agab-
  • July 14, 2008
  • Like
  • 0
Hello,
 
I am opening a new Visualforce page via an URL when I click on a button from the Leads tab page.  I am also passing a parameter in the URL query string i.e. /apex/myVisualforcePage?p=val.
 
I am trying to retrieve the 'p' parameter on the opened Visualforce page using the following: {!$CurrentPageReference.parameters.p}.  The problem is that I cannot even save the Visualforce page.  I get the following error:
 
Error: Field parameters does not exist. Check spelling.
 
Is this not the way to retrieve parameters from a query string, and shouldn't this work?
 
Thanks,
agab-
  • July 14, 2008
  • Like
  • 0
Hi all,
 
Does anybody know how one can get around the 100000 bytes limit placed on the size of the response returned from an HTTP Request?  I get the following error:
 
ERROR - Evaluation error: System.CalloutException: Exceeded max size limit of 100000 with response size 100832
 
Thanks,
agab-
  • June 10, 2008
  • Like
  • 0
Hello,
Does anyone have an idea why I cannot generate Apex code from this WSDL?  The WSDL parses successfully, but upon generation of the Apex code, I keep getting the following error:
 
"Error: Unable to find schema for element; getNameResponse"
 
pertaining to the green line in the WSDL below; it's a WSDL generated
by axis which I have had to modify to get it to work in Apex, but I cannot figure out what to do about this one error.
 
The underlying service is a simple java class with a method getName() that returns a String.
 
Thanks,
agab-
 
Below is the actual WSDL:
 
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="http://localhost:8080/axis/MyClass.jws" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/MyClass.jws" xmlns:intf="http://localhost:8080/axis/MyClass.jws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
  -->

  <xsd:element name="getNameResponse">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="getNameReturn" type="xsd:string" />
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  </xsd:schema>
</wsdl:types>
 
  <wsdl:message name="getNameRequest" />
<wsdl:message name="getNameResponse">
  <wsdl:part name="myResponse" element="getNameResponse"/>
  </wsdl:message>
<wsdl:portType name="MyClass">
<wsdl:operation name="getName">
  <wsdl:input message="impl:getNameRequest" name="getNameRequest" />
  <wsdl:output message="impl:getNameResponse" name="getNameResponse" />
  </wsdl:operation>
  </wsdl:portType>
<wsdl:binding name="MyClassSoapBinding" type="impl:MyClass">
  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="getName">
  <wsdlsoap:operation soapAction="" />
<wsdl:input name="getNameRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="literal" />
  </wsdl:input>
<wsdl:output name="getNameResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/MyClass.jws" use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
<wsdl:service name="MyClassService">
<wsdl:port binding="impl:MyClassSoapBinding" name="MyClass">
  <wsdlsoap:address location="http://localhost:8080/axis/MyClass.jws" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
  • April 07, 2008
  • Like
  • 0
Hello,
 
1.
I get the following error when trying to generate Apex code from the partner wsdl :
 

Error: partnerSoapSforceCom

Error: Script too large: //Generated by wsdl2apex

 
2.  So I selected the few classes that I needed -and removed the others- so that I am able to save the file. (and get it to compile)  Then I wrote my own Apex WebService method that makes a call to the login() method of the generated class., and I am calling my Apex WebService method from an S-Control.  Everything compiles but I get the following runtime error:
 
'System.CalloutException: Webservice callout failed: Unable to find apex schema info'
 
Has anyone experienced these errors? 
 
Thanks,
agab-
  • March 12, 2008
  • Like
  • 0
Hello,
I am getting the following error when trying to parse a WSDL and generate the relevant Apex classes in SalesForce:
 
"Error: Failed to parse wsdl: Found schema import from location https://*.xsd. External schema import not supported."
 
I believe that the following (edited) section of the WSDL referring to an external schema is what's causing the problem:
 
...

<wsdl:types>

<xs:schema>

<xs:import namespace="" schemaLocation="https://*.xsd"/>

</xs:schema>

<xs:schema>

<xs:import namespace="" schemaLocation="https://*.xsd"/>

</xs:schema>

</wsdl:types>

...

Can anyone confirm that this is in fact not allowed by Salesforce and if there is any remedy other than embedding the schema in the WSDL?

 
Thanks,
agab-
  • March 03, 2008
  • Like
  • 0
Hello,
I have an Apex method that takes an argument; I am invoking this method from an s-Control.  The call works fine when I invoke the method with no arguments or with an argument such as a String or a Standard SF Object (e.g. Lead, Account, etc...).  However when the argument is of the type of my own Apex Class i get the following error:
 
{faultcode:'soapenv:Client',faultstring:'There is no public member called 'type' in the Apex class 'myApexClass',}
 
'myApexClass' in fact does not have an attribute called 'type' (which is a reserved keyword so I cannot create such an attribute anyway) and nowhere in my code am I referring to such an attribute so I do not understand why it is looking for it.
 
Has anyone encountered this error before?  Thanks.
 
agab-
  • March 03, 2008
  • Like
  • 0
Hello,
 
I am opening a new Visualforce page via an URL when I click on a button from the Leads tab page.  I am also passing a parameter in the URL query string i.e. /apex/myVisualforcePage?p=val.
 
I am trying to retrieve the 'p' parameter on the opened Visualforce page using the following: {!$CurrentPageReference.parameters.p}.  The problem is that I cannot even save the Visualforce page.  I get the following error:
 
Error: Field parameters does not exist. Check spelling.
 
Is this not the way to retrieve parameters from a query string, and shouldn't this work?
 
Thanks,
agab-
  • July 14, 2008
  • Like
  • 0
Hi all,
 
Does anybody know how one can get around the 100000 bytes limit placed on the size of the response returned from an HTTP Request?  I get the following error:
 
ERROR - Evaluation error: System.CalloutException: Exceeded max size limit of 100000 with response size 100832
 
Thanks,
agab-
  • June 10, 2008
  • Like
  • 0
Hello,
Does anyone have an idea why I cannot generate Apex code from this WSDL?  The WSDL parses successfully, but upon generation of the Apex code, I keep getting the following error:
 
"Error: Unable to find schema for element; getNameResponse"
 
pertaining to the green line in the WSDL below; it's a WSDL generated
by axis which I have had to modify to get it to work in Apex, but I cannot figure out what to do about this one error.
 
The underlying service is a simple java class with a method getName() that returns a String.
 
Thanks,
agab-
 
Below is the actual WSDL:
 
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="http://localhost:8080/axis/MyClass.jws" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/MyClass.jws" xmlns:intf="http://localhost:8080/axis/MyClass.jws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
  -->

  <xsd:element name="getNameResponse">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="getNameReturn" type="xsd:string" />
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

  </xsd:schema>
</wsdl:types>
 
  <wsdl:message name="getNameRequest" />
<wsdl:message name="getNameResponse">
  <wsdl:part name="myResponse" element="getNameResponse"/>
  </wsdl:message>
<wsdl:portType name="MyClass">
<wsdl:operation name="getName">
  <wsdl:input message="impl:getNameRequest" name="getNameRequest" />
  <wsdl:output message="impl:getNameResponse" name="getNameResponse" />
  </wsdl:operation>
  </wsdl:portType>
<wsdl:binding name="MyClassSoapBinding" type="impl:MyClass">
  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="getName">
  <wsdlsoap:operation soapAction="" />
<wsdl:input name="getNameRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="literal" />
  </wsdl:input>
<wsdl:output name="getNameResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/MyClass.jws" use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
<wsdl:service name="MyClassService">
<wsdl:port binding="impl:MyClassSoapBinding" name="MyClass">
  <wsdlsoap:address location="http://localhost:8080/axis/MyClass.jws" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
  • April 07, 2008
  • Like
  • 0
Hello,
 
1.
I get the following error when trying to generate Apex code from the partner wsdl :
 

Error: partnerSoapSforceCom

Error: Script too large: //Generated by wsdl2apex

 
2.  So I selected the few classes that I needed -and removed the others- so that I am able to save the file. (and get it to compile)  Then I wrote my own Apex WebService method that makes a call to the login() method of the generated class., and I am calling my Apex WebService method from an S-Control.  Everything compiles but I get the following runtime error:
 
'System.CalloutException: Webservice callout failed: Unable to find apex schema info'
 
Has anyone experienced these errors? 
 
Thanks,
agab-
  • March 12, 2008
  • Like
  • 0
Hello,
I am getting the following error when trying to parse a WSDL and generate the relevant Apex classes in SalesForce:
 
"Error: Failed to parse wsdl: Found schema import from location https://*.xsd. External schema import not supported."
 
I believe that the following (edited) section of the WSDL referring to an external schema is what's causing the problem:
 
...

<wsdl:types>

<xs:schema>

<xs:import namespace="" schemaLocation="https://*.xsd"/>

</xs:schema>

<xs:schema>

<xs:import namespace="" schemaLocation="https://*.xsd"/>

</xs:schema>

</wsdl:types>

...

Can anyone confirm that this is in fact not allowed by Salesforce and if there is any remedy other than embedding the schema in the WSDL?

 
Thanks,
agab-
  • March 03, 2008
  • Like
  • 0
Hello,
I have an Apex method that takes an argument; I am invoking this method from an s-Control.  The call works fine when I invoke the method with no arguments or with an argument such as a String or a Standard SF Object (e.g. Lead, Account, etc...).  However when the argument is of the type of my own Apex Class i get the following error:
 
{faultcode:'soapenv:Client',faultstring:'There is no public member called 'type' in the Apex class 'myApexClass',}
 
'myApexClass' in fact does not have an attribute called 'type' (which is a reserved keyword so I cannot create such an attribute anyway) and nowhere in my code am I referring to such an attribute so I do not understand why it is looking for it.
 
Has anyone encountered this error before?  Thanks.
 
agab-
  • March 03, 2008
  • Like
  • 0