Author Topic: FedEx v2.0 - Web Services  (Read 223393 times)

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #390 on: February 22, 2012, 15:34:09 pm »
If all your products have this requirement, you could do something like this:

find this section of code in fedexv2.php
Code: [Select]
            if ($this->signature_required==true){
            $request['RequestedShipment']['RequestedPackageLineItems']['0']['SpecialServicesRequested'] = array(
            'SpecialServiceTypes' => 'SIGNATURE_OPTION',
            'SignatureOptionDetail' => array(
            'OptionType'=>'DIRECT',
            ),
            );
        }

change it to this:
Code: [Select]
            if (true || $this->signature_required==true){
            $request['RequestedShipment']['RequestedPackageLineItems']['0']['SpecialServicesRequested'] = array(
            'SpecialServiceTypes' => 'SIGNATURE_OPTION',
            'SignatureOptionDetail' => array(
            'OptionType'=>'ADULT',
            ),
            );
        }

This should force the adult signature option for ALL shipments to be considered.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #391 on: March 30, 2012, 03:38:47 am »
If you need the extra features that the advanced module offers, you'll need to merge the files together.  Otherwise, use the most basic version (2009.7.20)
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

plusplus

  • Beginner
  • *
  • Posts: 7
Re: FedEx v2.0 - Web Services
« Reply #392 on: March 30, 2012, 04:32:44 am »
I'm also running joomla 1.5.25 virtuemart 1.1.9 and install the FedEx 2.0 module (vm118-fedexv2.2011.04.19).

But It says:

Critical: FedExv2: SOAP libraries are not installed!

When I try to configure the shipping module

I found you answer that "Your server is not configured with the SOAP libraries.  This is a requirement for the module to work.".

But I don't know how to do that. Could you tell me by step pls?

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #393 on: March 30, 2012, 13:53:24 pm »
Talk to your web hosting.  It is a PHP library that needs to be installed.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

plusplus

  • Beginner
  • *
  • Posts: 7
Re: FedEx v2.0 - Web Services
« Reply #394 on: April 02, 2012, 12:49:03 pm »
Talk to your web hosting.  It is a PHP library that needs to be installed.

I'm running on localhost. How can I know if soap libralies installed?

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #395 on: April 02, 2012, 12:56:53 pm »
You can use the joomla system info tab to view installed libraries, or a phpinfo() script.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

Jennifer Chase

  • Beginner
  • *
  • Posts: 6
Re: FedEx v2.0 - Web Services
« Reply #396 on: April 13, 2012, 16:13:07 pm »
I have installed all files for FedexV2 and ran SQL script.

here is the error:
Error: Invalid FedEx transaction data at `
soapenv:ClientFailure while unmarshalling message: Failed to parse XML text9999Failure while unmarshalling message: Failed to parse XML text'unable to process services_rate

joomla 1.5.25/ VM 1.19

chuck at Fedex said that there should be a field for password. I don't see this in the Shipping Module Configuration: fedex.php.

any new development since 2009?

thanks ahead for any information.

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #397 on: April 13, 2012, 16:39:38 pm »
The fedex module has fields for four credentials:
key
password
meter
account

Even if you remove one of these credentials, you should get some type of valid reply, such as an authentication error.  The error you are seeing is not a module error.  It is a SOAP error.  Probably what is happening is that some data injected into the marshalled (compressed) xml stream is causing the parser to break.  It may be something as simple as HTTP headers are being returned with the xml (a common issue in other areas that usually breaks XML parsing).  You'll need to get with someone who can view and debug the returned data.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

Jennifer Chase

  • Beginner
  • *
  • Posts: 6
Re: FedEx v2.0 - Web Services
« Reply #398 on: April 13, 2012, 17:18:17 pm »
thanks-
i  reinstalled  fedex v2 module. I configured with appropriate credentials:
production/ key / fedex password/account/ meter
(password is fedex password or Joomla?, I read in a forum a descrepancy, please advise.)
Getting closer can you help me interpret response below?
...
debug response:

.....
Response:
stdClass Object (   
    [HighestSeverity] => ERROR
    [Notifications] => stdClass Object (       
        [Severity] => ERROR
        [Source] => prof
       
Code: [Select]
=> 1000
        [Message] => Authentication Failed
    )
    [TransactionDetail] => stdClass Object (       
        [CustomerTransactionId] => *** VirtueMart Rate Request ***
    )
    [Version] => stdClass Object (       
        [ServiceId] => crs
        [Major] => 9
        [Intermediate] => 0
        [Minor] => 0
    )
)
fedexv2::list_rates() - ERROR! 'ALL' shipment failed to populate. Exiting!
Notice: No FedEx rates returned.

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #399 on: April 13, 2012, 17:36:16 pm »
Well, it's pretty self explanatory  :P  The credentials you entered are incorrect.  Are you in DEVELOPMENT or PRODUCTION Web Services environment? Have you been moved to PROD?
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

Jennifer Chase

  • Beginner
  • *
  • Posts: 6
Re: FedEx v2.0 - Web Services
« Reply #400 on: April 13, 2012, 18:24:20 pm »
thanks for the response- It's a relief that it is probably my own error. I will look at fedex to make sure I have been moved to production there. I have production pull down selected at module.  :o

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #401 on: April 13, 2012, 18:44:07 pm »
No problemo...I know they used to provide a link to be moved to PROD in the email when you sign up.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

Jennifer Chase

  • Beginner
  • *
  • Posts: 6
Re: FedEx v2.0 - Web Services
« Reply #402 on: April 13, 2012, 19:02:56 pm »
i spoke with fedex and they assured mt that I am certified for production with my creds. Where do I check the address that fedexv2 uses when the pull  down selection is "production". I noticed the previous module had this as an input field. I think your right about crossing streams and it is pointing to development when I am supplying production credentials. can I send you a screen shot, I don't want to post client information here.

thank you

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: FedEx v2.0 - Web Services
« Reply #403 on: April 13, 2012, 19:10:37 pm »
The URL is handled by the wsdl file.   There is NO need to edit it.  When you choose "Production" from the dropdown, the module switches to the production WSDL.  You can confirm by using the debug options in the module. It's probably your Web Services key, password, or other credential.  Make sure you're using the correct one.  The key is about 16 alphanumerical chars long, and the password is much longer.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

Jennifer Chase

  • Beginner
  • *
  • Posts: 6
Re: FedEx v2.0 - Web Services
« Reply #404 on: April 13, 2012, 19:18:38 pm »
i definitely have the wrong password if it is as long as you say. hmmm
thanks again for your help, i think you rock