Skip to content

Commit

Permalink
Fix poczta-polska wsdl endpoint
Browse files Browse the repository at this point in the history
Remove ?wsdl (they changed something on their side and it breaks the thing)
  • Loading branch information
alufers committed Jun 18, 2024
1 parent 1d8c2b3 commit 1348696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/pocztapolska/poczta_polska_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func EscapeXML(d string) string {
func (ip *PocztaPolskaProvider) Track(ctx context.Context, trackingNumber string) (*commondata.TrackingData, error) {
client := httphelpers.NewClientWithLogger()

req, err := http.NewRequestWithContext(ctx, "POST", "https://tt.poczta-polska.pl/Sledzenie/services/Sledzenie?wsdl", strings.NewReader(fmt.Sprintf(`
req, err := http.NewRequestWithContext(ctx, "POST", "https://tt.poczta-polska.pl/Sledzenie/services/Sledzenie", strings.NewReader(fmt.Sprintf(`
<soapenv:Envelope xmlns:sled="http://sledzenie.pocztapolska.pl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
Expand Down

0 comments on commit 1348696

Please sign in to comment.